Unable to locate command :: org.apache.cordova.facebook.Connect - facebook

Windows Phone 7 app development with cordova 2.3.0. I get the error 'Unable to locate command :: org.apache.cordova.facebook.Connect' on FB.login. I started off with the code base that works fine in Android. What am I missing or not doing right on Windows? Any detailed documentation about PhoneGap WP7 and Facebook plugin integration?

try to set the namespace in call method:
look my example:
Cordova.exec(null, null, "WP7GapClassLib.PhoneGap.Commands.MyCommand", "SendRequest", args);

Related

Could not find cordova integration in the default project

following the official getting started tutorial I get the following error when I try to deploy the application in my phone using this command: ionic serve --devapp (it works on browser):
[ERROR] Could not find cordova integration in the default project.
I get this error both on Windows and MacOS.
I'm using Node 6.4.1 and Ionic CLI 4.10.3
Does the official tutorial missing something?
I had the same issue. In fact, with the default project, you have to copy the cordova assets to prepare the native build for mobile.
You can find more info here : Ionic documentation
Try this :
ionic cordova prepare
And then go again with :
ionic serve --devapp
The accepted answer is 100% correct .
But the reason why this occurred for me was that somehow the default was capacitor and not cordova.
so first i ran
ionic integrations disable capacitor
then ran
ionic cordova prepare
which solved my issue

How to access to the photo gallery in ionic?

I'm facing an issue using ionic creator, how can I upload an image from the phone gallery ?
What I tried (most relevant tries) :
followed this tutorial : https://forum.ionicframework.com/t/how-to-user-ngcordova-with-ionic-creator/68619/2 to set the environnement with "ionic-native.min.js".
=> Get : Uncaught SyntaxError: Unexpected token (
ionic.bundle.js:13443 Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:nomod] Module 'app' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Tried to use "imagepicker" (without the warranty that I really have installed the plugin in my environnement, because in the creator I can't install sources from the web. So, crossed fingers and hope "ionic-native.min.js" provides it.) : https://ionicframework.com/docs/native/image-picker/
=> still not working.
An finally I tried this : http://blog.ionic.io/ionic-native-accessing-ios-photos-and-android-gallery-part-2/
=> For the exact same result : white screen and errors.
I'm testing the app with both the web browser emulator (which I know sometimes doesn't work with cordova functions) and the ionic creator app on iphone. I'm sure someone have already faced and succeed this problem, thank you guys.
All you have to do is adding cordova-plugin-camera to your project, it should works like a charm (Ionic 2.x) :
ionic cordova plugin add cordova-plugin-camera

sample-Groceries, Failed to find module: 'platform'

While i am following the nativescript with angular tutorial, my command prompt says "Successfully deployed on device with identifier 'emulator-5554'" but the emulator thrown the error below.
Error calling module function
Error: com.tns.NativeScriptException: Failed to find
module: 'platform', relative to: app/tns_modules/
com.tns.Module.resolvePathHelper(Module.java:159)
com.tns.Module.resolvePath(Module.java:6O)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:514)
com.tns.Runtime.run(Runtime.java:509)
com.tns.NativeScriptApplication.on
Create(NativeScriptApplication.java:17)
android. a pp.1 nst rum e ntat ion. call AppationOnCreate(lnstrumentation.java:1024)
android. app. ActivityThread.handleBindApplication(ActivityThread.java:5361).
Please help.
Thank you.
Delete platforms and node_modules folders and rebuild the application with the respective command for the platform you are using.
e.g. tns run android

Titanium Appcelerator Running error on iOS 9.2

Device: iPhone 5 (Model A1429)
iOS version: 9.2 (13C75)
Titanium SDK: 4.0.0.GA
When I tried to run/distribute my app, I faced this error messages
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/iVirtue.build/Debug-iphoneos/iVirtue.build/Objects-normal/arm64/iVirtue normal arm64
[ERROR] : (1 failure)
The warning in TiApp Editor > Deployment Targets said
iOS development requires [5.0, 9.0) but you have 9.2
Initially, when I haven't updated my Titanium Studio and my iOS version, the app was running perfectly. Please help.
I didn't clearly explain it before. The app i made was made on Titanium Studio, so installed the Appcelerator Studio and have the app exported. Now, it's working well. Thank you all, now i can close this matter.
Try to update the Titanium SDK to the latest 5.1.2.GA & all other components as well, because as you said that the app was working fine before so it is something related to the updates.
Use Titanium Studio to update everything available.
This seems to be a problem in your run configuration (or tiapp.xml). I suggest you first delete the run configuration, run the app again to define a new run configuration. Also check tiapp.xml to see if you have any references to iOS version?
You should also clean your project prior to running it after having deleted the run configuration :-)
/John

android installation error: duplicated package

I am trying to run a map based app, using com.google.andoid.maps however I get the following error:
[2012-06-03 17:12:43 - myGps] Installation error: INSTALL_FAILED_DUPLICATE_PACKAGE
[2012-06-03 17:12:43 - myGps] Please check logcat output for more details.
[2012-06-03 17:12:43 - myGps] Launch canceled!
I have succeeded installing the package several times but the app wouldn't show on the emulator's screen, now I can't even install it.
I have tried:
Reseting adb
Installing manually
Checking if the package exists in ddms
None of these worked.
com.google.andoid.maps is the default google maps package.
Try giving a different package to your application.It should work then.