QuickBlox / quickblox-android-sdk

QuickBlox Android SDK includes code snippets with main use cases and framework JAR library.
BSD 3-Clause "New" or "Revised" License
417 stars 697 forks source link

Cannot create push subscriptions for two applications on one device #803

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi, I am facing a problem with creating push subscriptions for two applications on one device. Somehow, automatically push subscription doesn't work (see this issue), so I have to manual create push subscriptions following this instruction.

I have two applications using the same application credentials. Let call they are App1 and App2. If I use one device and, subscribe to push for a user on App1 then the subscription of a user on App2 was lost.

In Quickblox's document of subscription model, It contains a property bundle_identifier that is a unique identifier for client's application (In Android, a package ID). But in Quickblox Android SDK, there is no way to pass that property when subscribing to push. So, in the dashboard, bundle_identifier is blank. I think this is a reason why I can not create push subscriptions for two applications on one device. image

Do you have any idea about this?

Environment details

Related issue: https://github.com/QuickBlox/quickblox-android-sdk/issues/662

Reference: I'm following these documents to integrate QB push notifications.

vdovbnya-qb commented 1 year ago

Hello @quangnguyen-agilityio To investigate the issue, we need more information. Please provide API endpoint and chat endpoint that are used in your application.

ghost commented 1 year ago

@vdovbnya-qb Here are the endpoints I used in my apps: https://apifruitstreetstage.quickblox.com/, chatfruitstreetstage.quickblox.com

QB-maksym-pidhorbunskyi commented 1 year ago

Hello @quangnguyen-agilityio This is Maksym from QuickBlox support. Since you use custom endpoints and the issue relates to the old version of backend software, please submit a ticket at the Help Center for further assistance.

Looking forward to your ticket at our Help Center.

ghost commented 1 year ago

@QB-maksym-pidhorbunskyi Thank you for your support. I received an email from you that said our dev server is updated. I am verifying the update. In addition, can you help to take a look at the related issue as well? https://github.com/QuickBlox/quickblox-android-sdk/issues/802. Because the automatic push subscription feature doesn't work, then I have to manually subscribe to push following the documentation that leads to this issue.

I should use the automatic push subscription feature, right?

Looking forward to your feedback. Thanks a lot.

QB-maksym-pidhorbunskyi commented 1 year ago

@quangnguyen-agilityio Sure, I have just added a reply to #802, please check it. Also, let me know if the reported issue is fixed after software update