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

[Bug]: In-App Notification Timing Issues in React Native Expo App #257

Closed
Camus1859 opened this issue Apr 16, 2024 · 1 comment
Closed
Labels

Comments

@Camus1859
Copy link

Camus1859 commented Apr 16, 2024

Which Platforms?

Both

Which React Native Version?

0.72.10

Which @braze/react-native-sdk SDK version?

8.4.0

Repro Rate

100%

Steps To Reproduce

Example:

function App.tsx () {

  import Braze from "@braze/react-native-sdk"
  
  ...
  
  `Braze.changeUser("myUserId")`
 const permissionOptions = {
    alert: true,
    sound: true,
    badge: true,
    provisional: true,
  };

  Braze.requestPushPermission(permissionOptions);
  }
  
  ...

app.config.ts

...
    plugins: [
      "react-native-email-link",
      "expo-apple-authentication",
      [
        "@braze/expo-plugin",
        {
          androidApiKey: "...",
          iosApiKey: "...",
          baseUrl: "sdk.iad-05.braze.com",
          enableBrazeIosPush: true,
          enableFirebaseCloudMessaging: true,
          firebaseCloudMessagingSenderId: "...",
          enableSdkAuthentication: true,
          androidNotificationLargeIcon: "@mipmap/ic_launcher",
          androidNotificationSmallIcon: "@mipmap/ic_launcher_round",
          iosRequestPushPermissionsAutomatically: false,
        },
      ],
      [
        "expo-build-properties",
        {
          android: {
            compileSdkVersion: 33,
            targetSdkVersion: 33,
          },
          ios: {
            deploymentTarget: "13.4",
          },
        },
      ],
    ],
    ```
    
    
    
    
Braze dashboard settings:
1. In Braze Compose Messages section --> Request Push Permission is selected as a button response. Since this is a Push Primer In-App message.

 2. In Braze the Action-Based delivery --> `Perform Custom Event` is set to `Label Generated`
 
 3. The email I want to use is set. Reachable users is at the expected 1

### Expected Behavior

 1. When the "Label Generated" event is triggered, the corresponding in-app notification should appear immediately on the user's device
 

### Actual Incorrect Behavior

1. The in-app notification corresponding to the "Label Generated" event does not appear in real-time. The event logs correctly in the Braze dashboard, so the Overview section for the user shows the event is registered and makes it into Braze as expected but it fails to trigger an immediate in-app notification


### Additional Information

1. The Braze SDK integration works as expected for Push Notifications.
@Camus1859 Camus1859 added the bug label Apr 16, 2024
@Camus1859 Camus1859 changed the title In-App Notification Timing Issues in React Native Expo App [Bug]: [Bug] : In-App Notification Timing Issues in React Native Expo App Apr 17, 2024
@Camus1859 Camus1859 changed the title [Bug] : In-App Notification Timing Issues in React Native Expo App [Bug]: In-App Notification Timing Issues in React Native Expo App Apr 17, 2024
@vanessaland
Copy link
Collaborator

Hi @Camus1859 ,

Thanks for reaching out! Here are some things that may help resolve your issue:

  • Are you calling subscribeToInAppMessage before expecting to receive any in-app messages? This is necessary for listening and subscribing to events.
  • Are you setting the correct value for trigger minimum time interval for Android and iOS? This value determines the minimum time interval in seconds between triggers, where default is 30 seconds.

If you are still seeing this issue after the above, can you please contact support@braze.com with more details around the logs you are seeing, as well as adding any additional verbose logs? Also, please provide any additional details regarding your push and in-app message implementation. Thank you!

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

No branches or pull requests

2 participants