Closed StefanNedelchev closed 3 years ago
Hey @hardmaster92 , I just tried and the ProPlugins demo works fine for Vanilla NS. Sadly I'm not a Vue developer so not sure if you are initializing the plugin correctly. Don't you get something in the catch
method that could hint on what the problem is?
Unfortunately no - there's nothing in the object returned by the catch method. Actually I discovered something else - the initialization seems to be successful after all. I tried running the init()
metod without subscribing for the promise. Then I run getProducts()
with 1 second timeout and I actually get the products (and all other methods of the plugin work fine). So it's weird how the plugin is initialized correctly but the promise returned by the init()
method is rejected.
I'll close this issue because I've never experienced this issue after chosing a different approach using Vue's plugin installation pattern.
I have an Android app which is all setup with in-app purchases and subscriptions and testing track with a few tester accounts (also the app is in Published state). The problem is that I can't even start testing the purchases because the plugin fails to initialize. The promise from purchase.init([...]) always rejects and there's nothing in the response. I have both .then() and .catch() and I always enter in the 'catch' method. I followed the tutorials and double checked if I'm missing something. Unfortunately I can't provide you anything for testing so I guess the only thing that you can do is to run your app and see if it still works. I'll provide some of my code that implements the plugin. I use NS with Vue and I use the created and mounted hooks for initialization. Keep in mind that I also tried doing everything in the mounted hook without separation too but the result was the same. I also tried running the purchase.init() method on app launch and yet the promise still gets rejected.