ios - Parse [PFInstallation currentInstallation] returns nil -
i having problem getting parse (the force notification service) working on existing ios app. specifically, [pfinstallation currentinstallation] returning nil value. in didfinishlaunchingwithoptions method set
[parse setapplicationid:parseappid clientkey:parseclientkey]; however, 1 time applicationdidregisterforremotenotificationswithdevicetoken method called, code below returns nil currentinstallation.
pfinstallation *currentinstallation = [pfinstallation currentinstallation]; [currentinstallation setdevicetokenfromdata:_devicetoken]; [currentinstallation saveinbackground]; i not sure why happening when trying incorporate existing app. doing same things did blank app, , parse worked there. note no errors beingness thrown whatsoever. nil homecoming on [pfinstallation currentinstallation] nil saved.
any help appreciated.
turns out happens if delete installation on parse web console. prepare it, need uninstall , reinstall application on phone, , should start working again.
ios objective-c push-notification parse.com
No comments:
Post a Comment