Hi, I’ve got a big problem on my project.
I am writing a test app with in app purchases, using cordova-plugin-inapppurchase.
As this is a Cordova plugin I test my app on my Android phone. The plugin provides the inAppPurchase object for accessing the store and make purchases etc.
Here comes the error: When I try to use the inAppPurchase like
the App won’t deploy due “file:///android_asset/www/build/js/app.bundle.js Failed to load resource: net::ERR_FILE_NOT_FOUND” error.
In the next step I didn’t use the inAppPurchase object anywhere in my app and deployed it on my smartphone. My app works as expected. Then I opened the chrome developer tools, connected my phone for debugging. I typed inAppPurchase into the console and had full access to the object.
Then I build the project for android one more time without using the inAppPurchase object, and manipulated the app.bundle.js by inserting a console.log(inAppPurchase) in my default page. Then I build and deployed the app via Android Studio and it worked!
My guess is that there is something wrong while ionic compiles the TypeScript. This is my first ionic app and I’m new to this so I don’t have the experience for digging deeper. Do you have a clue how I can solve this problem?
Thank you so much!