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]: Not getting the onesignalId in Android, IOS is woking well. #952

Open
2 of 3 tasks
ghost opened this issue Sep 13, 2024 · 2 comments
Open
2 of 3 tasks

[Bug]: Not getting the onesignalId in Android, IOS is woking well. #952

ghost opened this issue Sep 13, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 13, 2024

What happened?

Flutter latest SDK is not sharing the one signal id.
Giving result: {"name":"update-subscription","appId":"53203455-f710-45bb-bb7a-845743d34be1","onesignalId":"local-689b8849-56e5-4f67-973e-130969d50907","subscriptionId":"local-9a1132fc-b85d-499d-80df-11b6656e1fd0","type":"PUSH","enabled":false,"address":"eIDYUMifQaW3Q_GzzPeFlJ:APA91bGSzSHyVmy2yxxJ8zu9ju8PJwnPg6o5a0gMeGx_4ftOo2L_XGiya9ZX6tDaqXTuzqs8wRxtbc_IB6GxkhP9kJTYy1pKeSSFxh5PvlzjOVvIsOT_Vr2Lj71AaX4ZgkMmFbgoyDqH","status":"NO_PERMISSION","id":"f09473b6-2262-452a-b186-6c47c7dff8eb"}
Use Code to get the One Signal ID: await OneSignal.User.getOnesignalId();
1726214495720

Steps to reproduce?

Flutter Environment
environment:
  sdk: ">=2.12.0 <3.0.0"
Flutter Version:
Flutter 3.24.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4cf269e36d (9 days ago) • 2024-09-03 14:30:00 -0700
Engine • revision a6bd3f1de1
Dart Version:
Tools • Dart 3.5.2 • DevTools 2.37.2


 #OneSignal
  onesignal_flutter: ^5.2.5
Phone Used: Xiaomi 11 Lite NE 5G

What did you expect to happen?

In the previous day it's working fine, But now I'm not able to fetch the onesignalId and push notification is not woking and not found the subscriber on list. For the first time the If I'm installing the app ID is generated but in next time it's not sharing it's giving me null.
That's why the entire push flow has been break down.

OneSignal Flutter SDK version

5.2.5

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

D/OneSignal(26486): [main] Retrieving service interface com.onesignal.notifications.INotificationsManager
D/OneSignal(26486): [Thread-8] ChannelTracker.getLastReceivedIds: lastChannelObjectReceived: []
W/SQLiteLog(26486): (28) double-quoted string literal: "notification"
D/OneSignal(26486): [main] Already instantiated: com.onesignal.notifications.internal.NotificationsManager@8c8b112
D/OneSignal(26486): [Thread-8] InfluenceManager.restartSessionIfNeeded: lastIds: []
D/OneSignal(26486): [main] NotificationsManager.addPermissionObserver(observer: com.onesignal.flutter.OneSignalNotifications@2916c10)
D/OneSignal(26486): [Thread-8] ChannelTracker.getLastReceivedIds: lastChannelObjectReceived: []
D/OneSignal(26486): [Thread-8] InfluenceManager.restartSessionIfNeeded: lastIds: []
D/OneSignal(26486): [Thread-8] OutcomeEventsController.sessionStarted: Cleaning outcomes for new session
D/OneSignal(26486): [Thread-8] OperationRepo.enqueue(operation: {"name":"track-session-start","appId":"53203455-f710-45bb-bb7a-845743d34be1","onesignalId":"local-689b8849-56e5-4f67-973e-130969d50907"}, flush: false)
D/CompatibilityChangeReporter(26486): Compat change id reported: 263076149; UID 10098; state: ENABLED
D/OneSignal(26486): [DefaultDispatcher-worker-4] HttpClient: Request Sent = GET https://api.onesignal.com/apps/53203455-f710-45bb-bb7a-845743d34be1/android_params.js - Body: null - Headers: Accept=[application/vnd.onesignal.v1+json], OneSignal-Install-Id=[19ab5a47-f282-4abe-9326-65d7d6e57297], OneSignal-Subscription-Id=[local-9a1132fc-b85d-499d-80df-11b6656e1fd0], SDK-Version=[onesignal/android/050121], SDK-Wrapper=[onesignal/flutter/050205]
D/OneSignal(26486): [DefaultDispatcher-worker-4] HttpClient: Adding header if-none-match: W/"df801173362e4037791ecd102b1104e3"
D/OneSignal(26486): [main] Retrieving service interface com.onesignal.user.IUserManager
D/OneSignal(26486): [main] Already instantiated: com.onesignal.user.internal.UserManager@41b82c2
D/OneSignal(26486): [main] Retrieving service interface com.onesignal.user.IUserManager
D/OneSignal(26486): [main] Already instantiated: com.onesignal.user.internal.UserManager@41b82c2
D/OneSignal(26486): [DefaultDispatcher-worker-3] initWithContext(context: android.app.Application@65e2072, appId: null)
D/OneSignal(26486): [DefaultDispatcher-worker-3] initWithContext: SDK already initialized
D/OneSignal(26486): [DefaultDispatcher-worker-3] Retrieving service interface com.onesignal.notifications.internal.restoration.INotificationRestoreProcessor
D/OneSignal(26486): [DefaultDispatcher-worker-3] Already instantiated: com.onesignal.notifications.internal.restoration.impl.NotificationRestoreProcessor@e22bcc3
I/OneSignal(26486): [DefaultDispatcher-worker-3] Restoring notifications
I/WM-WorkerWrapper(26486): Worker result SUCCESS for Work [ id=fdf5f387-1fb9-483a-bee3-623a66a2e63c, tags={ com.onesignal.notifications.internal.restoration.impl.NotificationRestoreWorkManager$NotificationRestoreWorker } ]

Code of Conduct

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

Any update on this?

I'm facing this issue as well.

@AmorApp
Copy link

AmorApp commented Oct 1, 2024

Same here - any update?

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

2 participants