Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter Amplify Push Notification. Can't send push message in IOS via Amazon Pinpoint FCM #5451

Open
2 of 14 tasks
gigamike opened this issue Sep 13, 2024 · 2 comments
Open
2 of 14 tasks
Labels
feature-request A request for a new feature or an enhancement to an existing API or category. push notifications question A question about the Amplify Flutter libraries

Comments

@gigamike
Copy link

Description

Hello,

The Flutter Amplify Docs is not very helpful. I don't know if this is a bug or if we can't send push notifications to iPhone/IOS using Amazon Pinpoint. Based on Amazon Pinpoint

"Firebase Cloud Messaging (FCM) – For sending messages to Android devices and web apps. It can also be used to send messages to iOS devices."

So via FCM we can send both Android and IOS.

But when I calling this

Amplify.Notifications.Push.onTokenReceived.listen((event) { print('🚀 onTokenReceived $event'); });

it generates an invalid FCM device ID, it generates an APN device ID that works on APN.

Any Ideas that when sending push notifications to IOS it's always APN and for Androis its FCM or do we need some APN to FCM device ID converter?

Thanks in advance

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

I just followed Amplify Docs

Screenshots

Screenshot 2024-09-13 at 2 19 36 PM

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.24.1

Amplify Flutter Version

2.2.0

Deployment Method

Amplify Gen 2

Schema

No response

@github-actions github-actions bot added pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Sep 13, 2024
@tyllark
Copy link
Member

tyllark commented Sep 14, 2024

Hello @gigamike, I'm sorry but iOS Amplify only supports APN currently and thus will only generate APN tokens from onTokenReceived. We have a guides for setting up APN and for connecting it to Pinpoint. Please let me know if you have any other questions, otherwise Ill keep this issue open as a feature request for FCM support for iOS.

To avoid additional confusion in the future, iOS push notifications will use APN Sandbox unless you install the app via the App Store, Tesflight, or directly from an ipa.

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Sep 14, 2024
@tyllark tyllark added feature-request A request for a new feature or an enhancement to an existing API or category. push notifications pending-maintainer-response Pending response from a maintainer of this repository question A question about the Amplify Flutter libraries labels Sep 14, 2024
@github-actions github-actions bot removed the pending-triage This issue is in the backlog of issues to triage label Sep 14, 2024
@tyllark tyllark removed the pending-maintainer-response Pending response from a maintainer of this repository label Sep 14, 2024
@gigamike
Copy link
Author

Thanks for the reply @tyllark , now makes sense. Hopefully, someday Amplify Push Notification FCM support for iOS.

@github-actions github-actions bot added the pending-maintainer-response Pending response from a maintainer of this repository label Sep 15, 2024
@Equartey Equartey removed the pending-maintainer-response Pending response from a maintainer of this repository label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for a new feature or an enhancement to an existing API or category. push notifications question A question about the Amplify Flutter libraries
Projects
None yet
Development

No branches or pull requests

3 participants