Can Parse Push Notifications be targeted to a specific iOS? -
i see in parse's documents force notification can targeted specific device (ios, android, etc.). target notification ios device users specific ios (ios 8). can accomplished, or limited targeting general device family?
you can adding osversion field _installation class, , query against it. when save installation on device set field.\
ios code example:
- (void)application:(uiapplication *)application didregisterforremotenotificationswithdevicetoken:(nsdata *)devicetoken { pfinstallation *currentinstallation = [pfinstallation currentinstallation]; [currentinstallation setdevicetokenfromdata:devicetoken]; currentinstallation.channels = @[@"global"]; currentinstallation[@"user"] = [pfuser currentuser]; currentinstallation[@"osversion"] = [uidevice currentdevice].systemversion; [currentinstallation saveinbackground]; }
ios push-notification parse.com apple-push-notifications
No comments:
Post a Comment