FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
124 stars 25 forks source link

Push notifications from Firebase Cloud Messaging do not open the dynamic link #2508

Open valera-kytyzov opened 7 months ago

valera-kytyzov commented 7 months ago

Has your issue been reported?

Current Behavior

I'm setting up push notifications via Firebase Cloud Messaging with Dynamic Links.

I am sending a request as shown below:

Screenshot 2024-03-12 095031

Both Android and iOS devices receive the push notifications. On Android, tapping on the push notification opens the desired page. However, on iOS, tapping on a push notification does not trigger any action.

When I tap on a link in any messenger on iOS, the correct application page opens, indicating that the links are configured properly. Therefore, the issue seems to be with the processing of the push notification link.

When I send test push notifications from FlutterFlow, specifying the page to be opened and its parameter, everything works as expected: the page opens on both Android and iOS devices. This leads me to wonder if FlutterFlow composes the request for sending push notifications in a unique way?

Expected Behavior

I expected that upon tapping the push notification sent via Firebase Cloud Messaging with an attached Dynamic Link, the application would open the specified page on both Android and iOS devices.

Steps to Reproduce

  1. Initial Setup: Created a mobile application using FlutterFlow, integrating Firebase Cloud Messaging (FCM) for push notifications and Firebase Dynamic Links for deep linking functionality.
  2. Configuring Firebase Cloud Messaging: Set up FCM in the Firebase console and integrated it with the FlutterFlow application to send push notifications to both Android and iOS devices.
  3. Adding Dynamic Links: Configured Firebase Dynamic Links in the Firebase console, ensuring that the links are designed to redirect users to specific pages within the application when tapped.
  4. Sending Push Notifications: Composed a push notification containing a Dynamic Link and sent it to devices using the Firebase Cloud Messaging service.
  5. Testing on Android: Received the push notification on an Android device and tapped it. Observed that the application opened and correctly redirected to the intended page via the Dynamic Link.
  6. Testing on iOS: Received the same push notification on an iOS device and tapped it. Expected the application to open and redirect to the intended page similarly to Android. However, observed that tapping the notification did not open the application nor redirect to any page.

Reproducible from Blank

Bug Report Code (Required)

IT4klsjfz81Oj7xH15CAbcJ4jSoUQlw8TL07ttYbZxUjIuPtBJh+Pc/eSFdBOP25TFNhHFX/mlsB+sLGiIflUfkFGEmqbJhi1bpqYALJf3q8R4S1C7mWdHJAJ+NbG0iv1MGRghYmNbJ1dV4k1GCHe+iXdHXDN5u/Zwh9f6PHaOI=

Context

I'm trying to make push notifications via FCM

Visual documentation

Screenshot 2024-03-12 095031

Additional Info

No response

Environment

- FlutterFlow version: 4.1
- Platform: iOS
Kato-Official commented 7 months ago

@valera-kytyzov I'm also having some trouble with Dynamic links, I was doing some more testing before opening a ticket. For me the issue is that the Dynamic link generated by Generate Current Link always created the exact same link no matter the screen you are in and also always diverts to root (home screen). I tried with both google assigned domain and custom domain. Doing some more testing before opening a ticket, but core issue could be the same (Link not directing to correct screen possibly related to link created state issue). Cheers mate

valera-kytyzov commented 7 months ago

So how long does it usually take you guys to fix a bug?