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

[question]: [Flutter] - .apk file cannot be registered on OneSignal #718

Closed
1 task done
PhamChiNang151020 opened this issue Aug 28, 2023 · 7 comments
Closed
1 task done

Comments

@PhamChiNang151020
Copy link

PhamChiNang151020 commented Aug 28, 2023

How can we help?

I go into debug mode, my console still shows "Subscriptions".

But when I build the .apk. Then the OneSignal dashboard is not showing and find "Subscriptions" on. I have tried deleting and reinstalling but still not working.

Information:

[√] Flutter (Channel stable, 3.7.7, on Microsoft Windows [Version
    10.0.19045.3324], locale en-US)
    • Flutter version 3.7.7 on channel stable at D:\Enviroments\flutter       
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2ad6cd72c0 (6 months ago), 2023-03-08 09:41:59 -0800 
    • Engine revision 1837b5be5f
    • Dart version 2.19.4
    • DevTools version 2.20.1

In pubspec.yaml :

onesignal_flutter: ^5.0.0

In main.dart

  OneSignal.initialize(keyOneSignalNotifier.value);
  OneSignal.Notifications.requestPermission(true);

image

Code of Conduct

  • I agree to follow this project's Code of Conduct
@wesleytoshio
Copy link

Same problem... this error only in release mode
image

@pnilkanth12
Copy link

Hi @wesleytoshio
I face same problem in release mode
Have you find any solution?

@andredealmei
Copy link

same here in release

@wesleytoshio
Copy link

my solution is to go back to version 3.5.1, allworks

@Aksoyhlc
Copy link

Aksoyhlc commented Sep 6, 2023

Add the permission line above the initialize line and put await at the beginning. Run initialize if user allows, otherwise don't run. If you still get the same error, request notification permission using the Permission package instead of Onesignal notification permission.

@wahyu-handayani
Copy link

I have the same problem, is there any update ?

@sherwinski
Copy link

Hello! Apologies that this question has gone stale.
If this question is still a current concern, please feel free to ping me or open a new issue with updated information that we can use to investigate.

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

No branches or pull requests

7 participants