Open
Description
What happened?
I can't access subscriptionId , I want to use rest api in my app but I need subscriptionId for specific notification. I tried with copy subs id one signal panel thats runned not have a problem in my code, but inside the code not access have a directly subs id.
Steps to reproduce?
This is my code =>
OneSignal.initialize(Env.oneSignal);
OneSignal.login(token ?? '');
var sendTags = {
'deviceLanguage': deviceLang,
'deviceCountry': deviceCountry,
'status': 'free'
};
OneSignal.User.addTags(sendTags);
print(OneSignal.User.pushSubscription.id);
What did you expect to happen?
Easily access subs id
OneSignal Flutter SDK version
5.0.3
Which platform(s) are affected?
- iOS
- Android
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct