Closed fellipefonseca closed 7 months ago
Something makes you believe it's due to this plugin? I believe it would be better to report that issue to the cordova-android team.
Hi. Thanks for answering. This is because it started happening after updating to version 13 of the plugin
Do you have some crash report on Google Play publisher console, or logs from a device. Is your app waiting for the in-app purchase plugin to be initialized to show something on screen? Do you have a device that fails so you can get some logs?
Plugin isn't really memory hungry, it's just a 340 KB javascript file and doesn't keep much data in memory.
This is a first report so I doubt that the plugin would be responsible of that by itself (plugin being used by apps with hundred thousands of users), it would be interesting to gather more info or there isn't much to analyze...
Hi @j3k0
We don't have crash reports because the app just stays on an infinite white screen. I saw another issue from someone reporting that it couldn't work on ionic 3 (#1471), so I believe it's really because of the typescript version, but we wouldn't be able to update to v4 because ionic 3 doesn't support it and there wouldn't be time to version migration, as the Google Play deadline is November 1st. I tried to set a flag in tsconfig "skipLibCheck": true, which made it possible for me to compile and work on my cell phone, but these reports of a white screen occurred, including with another person on the team.
Solved here
I think I may also be experiencing this white screen issue, because it started happening after I added in-app payments to my app. See https://github.com/aeharding/voyager/issues/946. I will try to investigate and get more logs.
I can confirm that there is something weird going on with this lib, maybe some weird capacitor interaction that's causing Capacitor apps to sporadically not load (especially on iOS for my users). I resolved this by using revenue cat's plugin in https://github.com/aeharding/voyager/pull/951. I wish I could help debug this but there are zero errors to debug and its very sporadic. :( Sorry
Observed behavior
Some users are reporting white screen when launching our app. We notice that it is being requested more than 1 GB of available RAM on the smartphone to initialize. If the smartphone has less than 1 GB of available RAM, the plugin won't initialize and our app fails to launch.
System Info
Output of
cordova info
. Cordova Packages:Project Installed Platforms:
Project Installed Plugins:
Environment:
android Environment:
ERROR: Command failed with exit code 1: android list target Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 5 more
The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
Running /Users/fellipefonseca/Library/Android/sdk/tools/bin/avdmanager list target
Project Setting Files:
<?xml version='1.0' encoding='utf-8'?>
--- Start of Cordova JSON Snippet --- { "plugins": { "cordova-plugin-device": {}, "cordova-plugin-splashscreen": {}, "ionic-plugin-keyboard": {}, "cordova-plugin-datepicker": {}, "cordova-plugin-calendar": {}, "cordova-plugin-network-information": {}, "cordova-plugin-screen-orientation": {}, "cordova-plugin-crop": {}, "cordova-plugin-statusbar": {}, "cordova-clipboard": {}, "cordova-plugin-apprate": {}, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-cocoapod-support": {}, "cordova-plugin-inappbrowser": {}, "cordova-plugin-androidx-adapter": {}, "cordova-plugin-wkwebview-file-xhr": {}, "cordova-plugin-file-opener2": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-idfa": { "ANDROID_PLAY_ADID_VERSION": "16.+" }, "cordova-plugin-facebook-connect": { "APP_ID": "221596308723733", "APP_NAME": "App Salon Soft", "FACEBOOK_URL_SCHEME_SUFFIX": " ", "FACEBOOK_AUTO_LOG_APP_EVENTS": "true", "FACEBOOK_HYBRID_APP_EVENTS": "false", "FACEBOOK_ADVERTISER_ID_COLLECTION": "true", "FACEBOOK_ANDROID_SDK_VERSION": "9.0.0", "FACEBOOK_IOS_SDK_VERSION": "9.0.1", "FACEBOOK_BROWSER_SDK_VERSION": "v9.0" }, "cordova-plugin-inapppurchase-2": {}, "cordova-plugin-contacts": {}, "cordova-plugin-file": {}, "cordova-plugin-file-transfer": {}, "cordova-plugin-http": {}, "cordova-plugin-advanced-http": { "ANDROIDBLACKLISTSECURESOCKETPROTOCOLS": "SSLv3,TLSv1" }, "cordova-plugin-firebase-analytics": { "ANALYTICS_COLLECTION_ENABLED": "true", "AUTOMATIC_SCREEN_REPORTING_ENABLED": "true", "ANDROID_FIREBASE_ANALYTICS_VERSION": "17.5.+", "IOS_FIREBASE_ANALYTICS_VERSION": "~> 6.32.2" }, "cordova-plugin-camera": { "ANDROIDX_CORE_VERSION": "1.6.+" }, "cordova-plugin-android-permissions": {}, "cordova-plugin-fcm-with-dependecy-updated": { "ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher", "ANDROID_FCM_VERSION": "23.0.0", "ANDROID_FIREBASE_BOM_VERSION": "29.0.1", "ANDROID_GOOGLE_SERVICES_VERSION": "4.3.4", "ANDROID_GRADLE_TOOLS_VERSION": "4.1.0", "IOS_FIREBASE_MESSAGING_VERSION": "~> 7.0.0" }, "cordova-plugin-purchase": {} }, "platforms": [ "android" ] }