In App Purchase Signature Verification Failed Error in Android using Cordova - cordova-plugins

I am using the following plugin for In-App Purchase in Cordova
"https://github.com/AlexDisler/cordova-plugin-inapppurchase"
Getting Error of
Signature Failed Code 1003
in alpha testing, added Billing Key in manifest.json file also.
Please help!

The plugin you're referring is not maintained anymore. You should probably try with this one:
https://github.com/j3k0/cordova-plugin-purchase
which is more popular and actively maintained.

Related

Ionic 4 running app on iOS device error with capacitor

I have an ionic 4 project with capacitor. I tried to open and build an iOS version.
The Xcode successfully build and install the app.
But when the app is running it freezes at splash screen and I get this error on Xcode log:
dyld: Library not loaded: #rpath/Capacitor.framework/Capacitor
Referenced from: /var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/App
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/Frameworks/Capacitor.framework/Capacitor: code signature in (/private/var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/Frameworks/Capacitor.framework/Capacitor) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
/private/var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/Frameworks/Capacitor.framework/Capacitor: code signature in (/private/var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/Frameworks/Capacitor.framework/Capacitor) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
/private/var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
/private/var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/Frameworks/Capacitor.framework/Capacitor: code signature in (/private/var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/Frameworks/Capacitor.framework/Capacitor) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
/private/var/containers/Bundle/Application/F39FC29D-255C-4BED-B6D5-6FEF4979C5F5/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
I already check the automatic signing in the capabilities section to allow Xcode to do all necessary signing operations.
But all solution is not working for me and I get this message always.
My Xcode version is 10.2.1 and I have to mention that app is correctly running on Xcode iOS simulators.
Please help me, It's 2 days that I'm struggling with this error!
Thanks
you're using Free Developer Account ?
As many of us, you're probably using a package that now require a paid Apple developer account.
I have the same error ("code signature invalid") using Capacitor.
You can try to remove use_frameworks! and adding use_modular_headers! in your Podfile, but success will depend on the package your using. With capacitor it's not working.
There are many issues on github like this one: https://github.com/NativeScript/NativeScript/issues/8294
If you subscribe to paid account, it will work...
Waiting for news/updates by apple group of idiots people !

How to resolve app validation "The app references non-public selectors in Payload/MyApp.app/MyApp: _setAlwaysRunsAtForegroundPriority:"?

Just days ago I successfully upload Ionic app to Apple Store, and on this day I am receiving validation warning:
The app references non-public selectors in Payload/something.app/something: _setAlwaysRunsAtForegroundPriority:
While I was unable to resolve, I was able to upload app to App Store.
Does anyone know where it is documented or have any insights on how to resolve?
Thanks.
Expanding on #Véger Lóránd answer:
The bug was re-introduced in the 4.1.1 version. Installing the latest version will get your app rejected.
The solution for now is:
cordova plugin rm cordova-plugin-ionic-webview
cordova plugin add cordova-plugin-ionic-webview#4.1.0
I got a similar problem:
ITMS-90338: Non-public API usage - The app references non-public selectors in MyAppName: _setAlwaysRunsAtForegroundPriority:.
And the issue was caused by the following plugin: cordova-plugin-ionic-webview
To solve the issue update to the latest version with the following commands:
cordova plugin rm cordova-plugin-ionic-webview
cordova plugin add cordova-plugin-ionic-webview#latest
You can read more about it here: https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/209
This worked
The problem is related to webview.
cordova plugin rm cordova-plugin-ionic-webview
cordova plugin add cordova-plugin-ionic-webview#latest
this is only security warning caused by webview. you can ignore
rejected on Appstore now. July 3th 2019.
Message:
We identified one or more issues with a recent delivery for your app, "appname. Please correct the following issues, then upload again. ITMS-90338: Non-public API usage - The app references non-public selectors in Sonnenbraeu: _setAlwaysRunsAtForegroundPriority:. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above ...
I removed the complete line of _setAlwaysRunsAtForegroundPriority: as described above from code. Also the references to it. And yes, the app got released. BUT I don't know exactly the consequence of removing the property which sets the browser to foreground priority mode. I don't think its a good solution, its just a provisoric workaround to get released.
ITMS-90338: Non-public API usage - The app references non-public selectors in XXXXXX: _setAlwaysRunsAtForegroundPriority:. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. If you think this message was sent in error and that you have only used Apple-published APIs in accordance with the guidelines, send the app's Apple ID, along with detailed information about why you believe the above APIs were incorrectly flagged, to appreview#apple.com.
cordova plugin rm cordova-plugin-ionic-webview cordova plugin add
cordova-plugin-ionic-webview#latest

Google Map IOS sdk Error

I downloaded the google map IOS sdk and then i crated the project from https://console.developers.google.com and then i created an API key.
Also i added the bundle identifier of the demo app in SDK.
But everytime i am running the app i am getting this error.
Google Maps SDK for iOS (M4B) cannot connect or validate APIKey: Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x15f04e00 {data={length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
Your key may be invalid for your bundle ID
I created the key multiple times and also checked the bundle identifier but they are correct.
So i am not able to figure out what exactly i am doing wrong.
Please let me know if any one can help regarding this.
Regards,
Arvinder
Make sure that you have the generated key for your iOS app in the developer console in the line
[GMSServices provideAPIKey:#"<INSERT API KEY HERE>"];
The error seems to complain that you are having an invalid Key which might be your case as you are directly trying to run demo code that you have downloaded. Example code do not usually contain valid keys as it can be misused by anyone else or exhaust the original authors API-call limits.
Also make sure that you have entered/authorized your current app's bundle id to use this API Key when you have generated it in your Google developer console.
First Create key for ios device from here
copy your bundle id form project so there is no chance for mistake
https://console.developers.google.com/project/plated-courier-95607/apiui/credential#pending_key
after that clean xcode , reset simulator ,close xcode ,open project run again it definitely going to work
you need to use the framework. Please find the instructions to download it via cocoa pods on the answer given by me on this link :
not able to use Google map sdk in ios
I also faced the same issue. Actually the problem is Google M4B Framework comes under premium plan. You need to purchase it from the Google's Developer Portal because it provides some new classes like GMSAutoComplete,
GMSAutoPredict etc.
You should rather use Google Standard Framework. It will run completely fine. Also you will not find some classes that come under Google M4B(only 5 new classes).
Implement the required steps and have fun.

submit app to crashlytics

When I added a new configuration to my current iOS app and built, packaged it correctly, but it failed to deploy onto crashlytics:
Deploying the app on Crashlytics... 2015-04-15 22:23:20.593 submit
Crashlytics: Crashlytics.framework/submit 1.3.1 (11) 2015-04-15
22:23:26.167 submit Crashlytics: Unable to add release notes: Project
OMQA is inactive 2015-04-15 22:23:26.167 submit Crashlytics: Failed to
add notes to the release
A problem with crashlytics occured while deploying
Is that the problem of the package?
Alex here from Crashlytics. It looks like your app is still in a build state. Before submitting, run it locally first. Give that a try and you should be all set!
I had the same issue, now solved: Incorrectly merged project did contain our developer's private Fabric/Crashlytics API Key/Secret instead of our Enterprise one.
I have resolved the issue by using correct API key and secret (organizational instead of developers') and discussed this with Mr. Bonnell on Support. The API error should become more explanatory soon. Sorry for not sharing the package name here, it's confidential.
I solve my problem just:
Going to https://fabric.io
Click in Settings
Click Apps
Select you app
Versions
Check if the version that you're trying to distribute is active! You can check in Hidden Versions and just toggle the version to Version Enabled!

GooglePlayGames not signed using an Apple submission certificate

Since itunes connect UI have changed I'm expressing problems submitting app updates.
I am using libgdx v 1.3.2-SNAPSHOT' and roboVM v '0.0.14'
The error I am getting from Application Loader:
ERROR ITMS-9000: "Missing or invalid signature. The bundle
'com.google.GooglePlayGames' at bundle path
'Payload/IOSLauncher.app/GooglePlayGames.bundle' is not signed using
an Apple submission certificate."
Any idea on why is this happening?
I found the solution! :
The latest update google has done to their iOS SDK 1.7.1 has fixed up everything except for the final GooglePlayGames.bundle which is available in the outdated GooglePlayGames iOS SDK v3.0
As soon as that SDK gets updated, we should be able to use this plugin and validate properly.
As for now you can do it manually by deleting the "GooglePlayGames.bundle/GooglePlayGames" binary.
It won't affect anything since it's just derived data.
Works Perfectly!

Resources