Skip to content

Commit 3c7f1bb

Browse files
totoflovilmart
authored andcommitted
improve docs for tvos (#577)
1 parent f6e1311 commit 3c7f1bb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

_includes/ios/push-notifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ While it is possible to modify a `PFInstallation` just like you would a `PFObjec
5858
* **`channels`**: An array of the channels to which a device is currently subscribed.
5959
* **`badge`**: The current value of the icon badge for iOS/OS X apps. Changing this value on the `PFInstallation` will update the badge value on the app icon. Changes should be saved to the server so that they will be used for future badge-increment push notifications.
6060
* **`installationId`**: Unique Id for the device used by Parse _(readonly)_.
61-
* **`deviceType`**: The type of device, "ios", "osx", "android", "winrt", "winphone", "dotnet", or "embedded". On iOS and OS X devices, this field will be set to "ios" and "osx", respectively _(readonly)_.
61+
* **`deviceType`**: The type of device, "ios", "tvos", "osx", "android", "winrt", "winphone", "dotnet", or "embedded". On iOS, tvOS and OS X devices, this field will be set to "ios", "tvos" and "osx", respectively _(readonly)_.
6262
* **`deviceToken`**: The Apple generated token used for iOS/OS X devices. On Android devices, this is the token used by FCM to keep track of registration ID _(readonly)_.
6363
* **`appName`**: The display name of the client application to which this installation belongs. In iOS/OS X, this value is obtained from `kCFBundleNameKey`. This value is synchronized every time a `PFInstallation` object is saved from the device _(readonly)_.
6464
* **`appVersion`**: The version string of the client application to which this installation belongs. In iOS/OS X, this value is obtained from `kCFBundleVersionKey`. This value is synchronized every time a `PFInstallation` object is saved from the device _(readonly)_.

_includes/parse-server/push-notifications.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,17 @@ push: {
121121
bundleId: '',
122122
production: true // Prod
123123
}
124+
],
125+
tvos: [
126+
// ...
127+
],
128+
osx: [
129+
// ...
124130
]
125131
}
126132
```
127133

128-
The configuration for macOS and tvOS works exactly as for iOS. Just add an additional configuration for each plattform. Please note the key for macOS is `osx`. If you need to support both the dev and prod certificates, you can do that for all Apple plattforms like described above.
134+
The configuration for macOS and tvOS works exactly as for iOS. Just add an additional configuration for each plattform under the appropriate key. Please note the key for macOS is `osx` and for tvOS is `tvos`. If you need to support both the dev and prod certificates, you can do that for all Apple plattforms like described above.
129135

130136
```js
131137
var server = new ParseServer({

0 commit comments

Comments
 (0)