iOS Question PushNotification

u2005k

Member
Licensed User
Longtime User
When I try to register my device for remote notification (App.RegisterForRemoteNotifications ), in the
Application_PushToken (Success As Boolean, Token() As Byte) I always get Success = False and following error.

Error getting token: <B4IExceptionWrapper: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo={NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}>


Thanks
 

tufanv

Expert
Licensed User
Longtime User
Add this to very top (attributes section)

B4X:
#Entitlement: <key>aps-environment</key><string>production</string>
 
Upvote 0
Top