#Error Push notifications

1 messages · Page 1 of 1 (latest)

west remnant
#

Has anyone been able to implement push notifications yet? I followed the documentation and it throws up an error saying "Failed to initialize push notifications." The official documentation for this isn't very clear.

misty spoke
#

Yes, it works.

hard hemlock
#

nope, my app crashes instead, but maybe because of android 11

faint otter
#

I do have it wokring on IOS with firebase, laravel, blade and vanilla javascript

winter saddle
#

where do you see this error: Failed to initialize push notifications.?

faint otter
#

Hmm after upgrading from 1.2 to 1.3.1 the push notifications don't work any more "Failed to register for remote notifications: no valid “aps-environment” entitlement string found for application", in xCode console log. Going back to version 1.2 everything works fine.

if (System::isIos()) {
            PushNotifications::enrollForPushNotifications();
        } elseif (System::isAndroid()) {
            PushNotifications::getPushNotificationsToken();
        }

winter saddle
#

is this in the native:run command?

faint otter
#

This is in xcode itself, for some reason the native:run does not work for me, https://discord.com/channels/1136045642154790955/1398382300106068019
I need to php artisan native:build -v, then php artisan native:open -> opens xcode, and run it from there. I can't show a screen shot, back to version 1.2. Need to set it back to 1.3.1 and reproduce it ?

winter saddle
#

Im taking a look into this now

winter saddle
#

I've been playing witht his for a while, and not having any of the same issues, run is working, notifications are working in the simulator etc. what are your relevant env vars

timid swift
#

Just tried to do this as well on iPhone 13 device and got similar error. It looks like it’s down to using a free profile.

@winter saddle are you using a paid profile?

winter saddle
#

A paid apple developer profile? Yes I am