iphone - didRegisterForRemoteNotificationsWithDeviceToken - Push Notifications -


i wanted confirm "didregisterforremotenotificationswithdevicetoken" meant called everytime application loads , php server or application needs deal whether or not resubmit store in database? or there missing?

thanks james

first, not meant call method directly. rather, should call registerforremotenotificationtypes: on every launch of app in turn calls application:didregisterforremotenotificationswithdevicetoken: must implement.

second, yes, supposed resubmit token server every time. documentation:

by requesting device token , passing provider every time application launches, ensure provider has current token device. if user restores backup device other 1 backup created (for example, user migrates data new device), or must launch application @ least once receive notifications again. if user restores backup data new device or reinstalls operating system, device token changes. moreover, never cache device token , give provider; token system whenever need it. if application has registered, calling registerforremotenotificationtypes: results in ios passing device token delegate without incurring additional overhead.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -