Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Not working on iOS devices #214

Open
Shagun-29 opened this issue May 10, 2021 · 2 comments
Open

Not working on iOS devices #214

Shagun-29 opened this issue May 10, 2021 · 2 comments

Comments

@Shagun-29
Copy link

Notifications are received on android but not iOS devices.

 // fcm_id <--- for device
        $optionBuilder = new OptionsBuilder();
        $token = $fcm_id;
        $optionBuilder->setTimeToLive(60*20);
        $notificationBuilder = new PayloadNotificationBuilder($title);
        $notificationBuilder->setBody($builderMsg)->setSound('default');
        $dataBuilder = new PayloadDataBuilder();
        $dataBuilder->addData(['message' => "Message Sent"]);
        $option = $optionBuilder->build();
        $notification = $notificationBuilder->build();
        $data = $dataBuilder->build();
        $downstreamResponse = FCM::sendTo($token, $option, $notification, $data);
        $downstreamResponse->numberSuccess();
        $downstreamResponse->numberFailure();
        $downstreamResponse->numberModification();
@mstockbridge2000
Copy link

Any luck with this issue? We can't figure it out.

@TopDev114
Copy link

Looks like that, I tried but I am also cannot receive notification.
Did you solve it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants