Closed Arthurius closed 2 months ago
Anyone had a chance to look at this issue? It's quite inconvenient to have to restart the application each time we switch environment.
Still no update on this?
Hi @Arthurius I have responded to the support ticket 355685. Please update the ticket if you have any further questions. Thanks.
Thank you @hans06806 , the problem is that this does not work on Flutter. I tried everything to dispose and stop the instance, but it simply does not work. As a workaround I built our own wrapper around the iOS and Android SDK's. There it does work.
For our application, we are using a different instanceId per environment (dev, test, accept and prod). For our debug application we have an environment switch. Whenever we switch between environments, we want to stop Pusher, and start with a new instanceId. But when we do, this throws an exception:
Is it possible, like the exception states, to use multiple PushNotificationsInstances in Flutter? I could not find a way to do this. Or can we really stop and clear the instanceId before we start a new instance?