iphone - iOS push notification app not asking for permission on registration -
i working on app requires push notifications enabled. have followed this article , worked fine till downloaded provisioning profile. using rubymotion develop app , hence in rakefile did this,
app.name = 'myapp' app.identifier = 'com.myapp.development' app.provisioning_profile = '/users/sunilkumar/library/mobiledevice/provisioning profiles/myapp_development.mobileprovision' 'my app' name of app. identifier project identifier (as per rubymotion docs , per belief thats bundle identifier ), default value of override make same app id created in ios development center.
in app_delegate.rb, have piece of code,
uiapplication.sharedapplication.registerforremotenotificationtypes(uiremotenotificationtypealert | uiremotenotificationtypebadge | uiremotenotificationtypesound) the issue when device connected , app installed, permission push notifications not being asked. guess have done right , per article linked above, somehow doesn't seem work. on must appreciated.
i think might have installed app before. ios ask permission push once day per application. so, need change system time ahead 2 days or more, reboot device change systime back. make permission alert asked again.
Comments
Post a Comment