Skip to content

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

@PhamChiNang151020

Description

@PhamChiNang151020

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions