You need to sign in to do that
Don't have an account?

About SFPushNotificationManager Error "The requested resource does not exist"
I want to achieve the message push function of salesforce on iOS,
I have done as Mobile SDK Guide said
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
[[SFPushNotificationManager sharedInstance] didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
if ([SFUserAccountManager sharedInstance].currentUser.credentials.accessToken != nil) {
[[SFPushNotificationManager sharedInstance] registerForSalesforceNotifications];
}
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[SFPushNotificationManager sharedInstance] registerForRemoteNotifications];
}
but the console print
ERROR|SFPushNotificationManager|Registration for notifications with Salesforce failed with status 404
and
ERROR|SFPushNotificationManager|Response:(
{
errorCode = "NOT_FOUND";
message = "The requested resource does not exist";
}
)
how to solve this problem?
I have done as Mobile SDK Guide said
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
[[SFPushNotificationManager sharedInstance] didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
if ([SFUserAccountManager sharedInstance].currentUser.credentials.accessToken != nil) {
[[SFPushNotificationManager sharedInstance] registerForSalesforceNotifications];
}
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[SFPushNotificationManager sharedInstance] registerForRemoteNotifications];
}
but the console print
ERROR|SFPushNotificationManager|Registration for notifications with Salesforce failed with status 404
and
ERROR|SFPushNotificationManager|Response:(
{
errorCode = "NOT_FOUND";
message = "The requested resource does not exist";
}
)
how to solve this problem?
Does your organization have the right permissions set up to accept push notifications? And does the user who is trying to access the push notifications API have the permissions set up to be able to register for and receive push notifications? Either of these things could result in the aforementioned error.
We are also facing the same problem and getting the same error as mentioned above in console.
The consumer key is already updated , kindly let me know if any althernate solution found. Thanks!
Any help regarding this please... It seems the error is coming while registering with SalesforceSDK Manager...Did you guys found any solution?
Kindly help. Thanks!
Regards,
Soma C