Closed oscarparedez-eagle closed 11 months ago
Hello, @oscarparedez-eagle 👋 and thanks for opening this issue. For Android versions lower than v13, the permission modal pops upon channel creation and happens at startup by default. However, v13+ of Android will allow for control of when the permissions modal pops up via the Notifications.Push.getPermissionStatus()
method. So the time at which the permissions modal will appear is going to be based on your app's target SDK version.
Can you confirm what version of Android you're currently on?
@cwomack Looking at AWS Pinpoint, I could send a test message only if I had an fcm token, but I can't send a version android 12?, is it only possible to send segments?
What should i do if I want fcm token?
Hey, @ParkAward. Does that mean you're currently using Android v12.x? Just to confirm, have you already gone through the steps to set up FCM for Push Notifications within your app?
Closing this issue since we haven't heard and the documentation was updated to provide a better callout for this. If there's further questions or a need to reopen this issue, please feel free to reply back!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Push Notifications
Amplify Categories
notifications
Environment information
Describe the bug
As soon as the app launches, the request permissions for push notifications modal is showing up. The library should be flexible enough so that this can be configured.
Expected behavior
I would like to configure this, like telling the config (probably in aws-exports) to not ask for permissions on app launch. I would like to do so after the user aunthenticates, reaches Home Screen, etc.
Reproduction steps
Code Snippet
Log output
aws-exports.js
/ eslint-disable / // WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.
const awsmobile = { aws_project_region: "us-east-1", aws_cognito_identity_pool_id: "xxxx", aws_cognito_region: "xxx", oauth: {}, aws_cognito_username_attributes: [], aws_cognito_social_providers: [], aws_cognito_signup_attributes: [], aws_cognito_mfa_types: [], aws_cognito_password_protection_settings: { passwordPolicyCharacters: [], }, aws_cognito_verification_mechanisms: [], aws_mobile_analytics_app_id: "xxxx", aws_mobile_analytics_app_region: "xxx", Analytics: { AWSPinpoint: { appId: "xxxxx", region: "xxx", }, }, Notifications: { Push: { AWSPinpoint: { appId: "xxxx", region: "us-east-1", }, }, }, }
export default awsmobile
Manual configuration
No response
Additional configuration
No response
Mobile Device
Android Pixel 5
Mobile Operating System
API 33
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response