When i log in to iPhone developer programmer portal as admin, if go to App Id section
i can see list of app id's.I want to enable for push notification.But in Action column there is nothing i am not getting configurable button. So i am not able to proceed further to get SSL certificate for my app.
In order to enable the Push Notification Service, you must set the explicit name for your App ID, not the wildcard asterisk character. See the iPhone Developer program user guide for more information.
Related
I have a flutter app with 2 authentication methods:
Based on device id (associated with account during account creation)
Sign in with apple
I need to know whether user is currently signed in with apple on each app launch.
Why I need that:
When device id is not found in my back end, I send user to registration page, where user has 2 options to register:
regular registration
sign in with apple
The problem is that device id can be changed on ios upgrade, app reinstall etc. Therefore if user signed in with apple first time, but then his device id has changed, I want to remove sign in with apple button. Because for that particular case user is supposed to go through regular sign in method where he needs to enter phone number he entered during the registration and if he confirms SMS code, then account is linked to new device id and access is restored. I don't want them to click sign in with apple again, because during regular sign ins I only get tokens from apple and can't get apple id email anymore.
Hopefully that makes sense.
Thank you
I need to get the device token because I will use it for autologin. However, if the user did not allow Push Notifications from my App in his/her device, I will not be able to get the device token. I want to know if it's possible to get and store the user's device token even if he/she did not enable APN. Thanks.
Enabling/Disabling the push notification is just a setting. It doesn't stop the device from receiving the access token from APPLE
Check #Kimpoy's answer including the comments.
In my understanding on APNS, it doesn't depend on the user's action (as you mentioned that if when the user clicks on Don't Allow button) for your iOS to receive the Device Token.
If you included in your app:
- (void)application:didRegisterForRemoteNotificationsWithDeviceToken
This means that your iOS-based app is sending a request for Push Notification registration. In return, Apple sends the Device Token to the iOS; then the iOS sends the token to the app and then the app sends it to their service provider.
Not that when the user is asked "Don't Allow" doesn't mean that you're not going to receive the device token. Don't Allow refers to the action to be taken to any notification received by the app that is intended for the user. Say, location. This is a whole different thing. This means that the user doesn't allow the app to use his/her location.
Yes, it still receives the Device Token as what I have discussed in my answer to your question in #1. This is only a setting for your app, which means that you won't be receiving any visible notification (badge, message or a sound) whenever there are updates about any information in relevance to your application. It's like setting your Facebook account to only receive notifications when your friends sends you a private message. Other than that, you won't be notified at all.
The process of enabling APNS is:
Request for certificate Authority
Create app id
Configuring AppId for Push Notifications
Create provisioning profile
Provisioning a device
Enabling the profile in Xcode
Creating push notification provider.
For more understanding on APNS, check out this.
You still can get the device token even if the user disables it.
In some iPhone 5 devices we have an error when trying to call Facebook login:
The error is:
"the facebook server could not fulfill this access request invalid application id"
I many times checked that application id is specified correctly.
Strange, that on other devices same app is working correctly.
Please, could you help, what the reason of that?
All developers of a particular app, should be known to Facebook. While the application is in Sandbox mode (i.e. developer only access), all every user who want to use the Facebook platform, for testing/developing the application, will have to be added as a developer (as shown below) -
Just goto https://developers.facebook.com/apps/, and add the user, in the list of developers/admins.
More than likely the app is "sandboxed", so only developers have access. If this is the case you'll have to use a developer account on the iPhone.
Go to iOS settings > Facebook
Log out with your "personal" account
Log in with the developer account (to be safe us the dev account that you created the app with)
This worked for me.
I faced this problem. For me the issue was that I hadn't added the iOS platform for the app. Go to the Facebook developer page, then select your app. In the left nav bar go to settings. Then add platform. Ensure that your bundle identifier is correct. Then it should work.
If you have been testing with a sandbox facebook app and then receive this error when switching to the production app make sure you have published the app in the status & review tab.
I am working on an iPhone app with Apple Push Notification integration. I have some doubts on this.
If the user clicked "Dont Allow" button in the APNS registration alert, will our code still receives the Device Token from APNS?
I have tested that when the user switched off the notification in iPhone notification, still the app receives the Device Token from APNS? It is correct?
Can anyone please clarify these doubts?
In my understanding on APNS, it doesn't depend on the user's action (as you mentioned that if when the user clicks on "Don't Allow" button) for your iOS to receive the Device Token.
If you included in your app:
- (void)application:didRegisterForRemoteNotificationsWithDeviceToken
This means that your iOS-based app is sending a request for Push Notification registration. In return, Apple sends the Device Token to the iOS; then the iOS sends the token to the app and then the app sends it to their service provider.
Note that when the user is asked "Don't Allow" doesn't mean that you're not going to receive the device token. "Don't Allow" refers to the action to be taken to any notification received by the app that is intended for the user. Say, location. This is a whole different thing. This means that the user doesn't allow the app to use his/her location.
Yes. it still receives the Device Token as what I have discussed in my answer to your question in #1.
This is only a setting for your app, which means that you won't be receiving any visible notification (badge, message or a sound) whenever there are updates about any information in relevance to your application. It's like setting your Facebook account to only receive notifications when your friends sends you a private message. Other than that, you won't be notified at all.
The process of enabling APNS is:
Request for certificate Authority
Create app id
Configuring AppId for Push Notifications
Create provisioning profile
Provisioning a device
Enabling the profile in Xcode
Creating push notification provider.
For more understanding on APNS, check this out.
I have tested with Xcode 6.1, ios8.1.2. Currently the device token will be generated only in two cases
Apple's default consent with "Ok" option
After "Dont allow", manual change in Setting->Notifications->app->AllowNotification(On)
By declining first time with apple's consent, will not generate device token, till manually change the value in settings page.
I have created iphone application which support Apple push notification service.
I also configured the server on windows which sends my device id to apple server.
I gets device ID whenever I launch application. But still i wont get any notification from
apple server, where notifications were also send to apple server from my local windows
server.
How should I check where my APN application is going wrong? Bcoz on server side, server didnt get any error message during sending messages to APN server, also on my iphone application I have properly registered for remote notifications. But still I dont get any notifications. Please help
If your application is not working for you, iron out you problems before letting third parties test your application. If your having trouble receiving notifications it won't be any better for the testers.
As how to actually beta test your app. Go to a commercial outfit or ad hoc by:
Have all testers submit their devices UDID as listed on the "Summary" tab from the device page in the iTunes application (click "serial number" to display the UDID).
Enter all UDID's into the device list on your iTunes Connect account.
Create a new provisioning profile with all your testers devices enabled.
Export your new app provisioning profile to xCode and rebuild.
Send the provisioning profile and fresh app to your testers instruction them to drop both on iTunes to install it on their iPhone.
Really, really thank your testers for their hard work.