I tried to use Childbrowser in phonegap 1.7.0 in my project.But it won't run as my expectation.
Error: ' PGPlugin.h' file is not found.
How to obtain the file 'PGPlugin.h'?
Does anyone meet this problem?
Does phonegap plugin not support the latest phonegap?
You want to use this version of the ChildBrowser instead as it is updated for use with Cordova.
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/ChildBrowser
Related
the problem happens after add google map plugin in this link
https://github.com/mapsplugin/ionic-googlemaps-quickdemo-v4
this google map work fine in ios but when I try to run it on android
get this error
[cordova] * What went wrong:
[cordova] Execution failed for task
':app:processDebugGoogleServices'.
[cordova] > Please fix the version conflict either by updating the
version of the google-services plugin (information about the latest
version is available at https://bintray.com/android/android-
tools/com.google.gms.google-services/) or updating the version of
com.google.android.gms to 10.+.
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run
with --info or --debug option to get more log output. Run with --
scan to get full insights.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 38s
[ERROR] An error occurred while running subprocess cordova.
cordova build android exited with exit code 1.
I try all these solutions but not work for me but work for someone
1- https://forum.ionicframework.com/t/ionic-processdebuggoogleservices-version-conflict/132560
2- https://github.com/arnesson/cordova-plugin-firebase/issues/1093
3- https://forum.ionicframework.com/t/execution-failed-for-task-app-processdebuggoogleservices-please-fix-the-version-conflict-either-by-updating-the-version-of-the-google-services-plugin-version-of-com-google-android-gms-to-11-8-0/125610
4- https://forum.ionicframework.com/t/google-services-version-conflict-maps-fcm/93695/51
5- https://forum.ionicframework.com/t/google-services-version-conflict-maps-fcm/93695
The problem happens because I am using the old version from FCM plugin it works fine before adding google map plugin the conflict happens because of the 10.+ and 15.0.1 not the same and not compatible.
cordova.system.library.2=com.google.firebase:firebase-core:10.+
cordova.system.library.3=com.google.firebase:firebase-messaging:10.+.
and
cordova.system.library.4=com.google.android.gms:play-services-maps:15.0.1
cordova.system.library.5=com.google.android.gms:play-services-location:15.0.1
the solution is very simple and funny for me on these steps
1- uninstall fcm plugin using this command.
ionic cordova plugin rm cordova-plugin-fcm-with-dependecy-updated
2- install fcm plugin
ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated
3- remove the android platform
ionic cordova platform rm android
4- add android platform
ionic cordova platform add android
now everything is ok
go to android platform and open project.properties
you found the changes
like that
cordova.system.library.2=com.google.firebase:firebase-core:16.0.9
cordova.system.library.3=com.google.firebase:firebase-messaging:18.0.0
now run
ionic cordova run android
I hope that helpfull anyone thanks.
When run this command:
ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="google-api-key" --variable API_KEY_FOR_IOS="google-api-key"
The ERROR occurs:
Installing "cordova-plugin-googlemaps" for android
Failed to install 'cordova-plugin-googlemaps': Error: ENOENT: no such
file or directory, open
'/Users/xxx/Desktop/xxx/platforms/android/AndroidManifest.xml'
i have sometimes the same problem, have open sublime or something like notepad?
if you have opened some notepad, check if exists the android directory and click inside of him(sometimes dont remove this directory with the notepad opened)
if dont exists the directory, the problem is easy you dont have the directory. You must to do these commands inside ionic proyect.
For ionic:
ionic platflorm remove android
ionic platform add android
For cordova cli:
ionic cordova platflorm remove android
ionic cordova platform add android
For check ionic version inside proyect:
ionic info
Greetings dherediat
As per Cordova Android CLI version 7.0.0 release note you need to change your AndroidManifest.xml path as mention below
This may affect plugin.xml files and config.xml files that use
edit-config, and make it so plugins that use edit-config will not be
able to be compatible with both Android 6.x and Android 7.x. To fix
this issue, please do the following in your XML files:
<!-- An existing config.xml -->
<edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">
<!-- needs to change to -->
<edit-config file="app/src/main/AndroidManifest.xml" target="/manifest/application" mode="merge">
Check this official release note for Cordova Android CLI 7.0.0 Release Note.
Hope this will helps to solve your problem
I have the following implementation of Google Maps api (see link below). It works perfectly when I run ionic serve and test it in a browser. However, when I do cordova build and deploy the apk to my android 6.0.1 phone, it fails. The map does not load and it hangs on the loading spinner.
If anyone has any ideas, I would appreciate the help.
Thanks
https://forum.ionicframework.com/t/google-maps-working-in-browser-but-not-device/58819
SOLVED:
I ran the following, and low the map loads on the device too:
cordova plugin add cordova-plugin-geolocation
Run the following commands:
ionic plugin add cordova-plugin-geolocation
and
npm install --save #ionic-native/geolocation`
This link would be helpful.
I am working on the windows-8 PC. And i have some HTML app gui which i want to convert to android mobile app.
I am new to phonegap.
How to setup the development environment for phonegap?
1> Following tool android developers app tells to use phonegap cli to create new project :--
http://phonegap.com/blog/2014/04/23/phonegap-developer-app/
This video uses Android sdk to create new project :--
http://www.youtube.com/watch?v=MF6dzbTDwdY
Which is the best methord to start working with phonegap ?
Do we need android SDK if we work with phonegap cli ?
2> This link tells to use commandline or IDE methord to create phonegap projects :--
https://github.com/phonegap/phonegap/wiki
3> What exactly is the relation between android SDK & phonegap cli .. ?
i would recommend you to use Cordova. Why? Yes, there is no realy reason why to do this, It's rather a question of what you like to work with.
I'm using Cordova. Maybe you read the Getting started guide and then the following documentation.
After you installed all, you can open up the CMD and create a new cordova project. If you want to know, how to do this, go on with the posted link above. A little bit under the setup instructions you can find a Guide which explains you, how to setup a new project and so on.
If you work with Cordova, you need Eclipse and i would recommend you to install Genymotion for having more options of deploying an app to a device.
Later on, if you would like to convert an Application to another platform you can use the Phonegap Build from Adobe. But normaly you can use your code like you wrote it for android 1:1 for iOS. Maybe there are some tiny differences, but they would'nt be fixed by the phonegap build i think. So... i would say there is no way to say "You should work with Phonegap" or "You should work with Cordova" it's your choice.
If you want to build app for android locally you'll need android SDK. This is because phonegap/cordova uses the android SDK to wrap the app.
Basically phonegap/cordova uses the SDK to compile the project for android platform and to build the APK file which can be installed in devices. You can interpret as Phonegap/cordova cli is an interface between android technology and cross platform technology. Similarly iOS will need some native technology to work with phonegap. Thiese SDK helps to build and package the app for their own platform which you've written in HTML/CSS/Javascript.
I'm trying to use the Facebook iOS SDK, but it requires SBJSON, which is already included by PhoneGap, thus raising ld: duplicate symbol _OBJC_METACLASS_$_SBJSON.
PhoneGap 0.9.3
iOS SDK 4.2
Does anyone have any idea how to solve it?
I too faced the same problem, i just deleted the 'JSON' folder inside the 'FBConnect' folder. Then it worked fine .