Skip to content

Commit 8119ee9

Browse files
committed
Updated missing push notif capability error msg
* Updated it with new instructions based what was observed in Xcode 12.4
1 parent 4b7d046 commit 8119ee9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignal.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,9 +1603,8 @@ + (void)handleDidFailRegisterForRemoteNotification:(NSError*)err {
16031603
waitingForApnsResponse = false;
16041604

16051605
if (err.code == 3000) {
1606-
// User did not enable push notification capability
16071606
[OneSignal setSubscriptionErrorStatus:ERROR_PUSH_CAPABLILITY_DISABLED];
1608-
[OneSignal onesignal_Log:ONE_S_LL_ERROR message:@"ERROR! 'Push Notification' capability not turned on! Enable it in Xcode under 'Project Target' -> Capability."];
1607+
[OneSignal onesignal_Log:ONE_S_LL_ERROR message:@"ERROR! 'Push Notifications' capability missing! Add the capability in Xcode under 'Target' -> '<MyAppName(MainTarget)>' -> 'Signing & Capabilities' then click the '+ Capability' button."];
16091608
}
16101609
else if (err.code == 3010) {
16111610
[OneSignal setSubscriptionErrorStatus:ERROR_PUSH_SIMULATOR_NOT_SUPPORTED];

0 commit comments

Comments
 (0)