Plugin nativescript-mapbox is not included in preview app on device - mapbox

Plugin nativescript-mapbox is not included in preview app on device
tns plugin add nativescript-mapbox
anyone experiencing this?

It means exactly what it says. The Nativescript Preview app only has a limited number of libraries installed, making it usable only for basic, simple apps.
The Preview app comes with a predefined set of NativeScript plugins. If your app > utilizes a plugin that is not present in the Preview app, you will see a warning > message and your app might not work as expected.
tns preview documentation
The best solution while developing your app is to use emulators.
As a side note, from my experience, I've found that the iOS Preview app has more plugins and generally works better.

Related

Simple link to page works on xdk app preview but not work when I build the app

A simple link in the simplest xdk html5 app, let's say, a link to Google for example (click me) works on app preview. But, when I build the app, download the apk and install on my tablet, the same link don't work. Here is what I have done:
Created the apk using phonegap builder and it worked. Same code.
Include all plugins on xdk, used all types of script like loadExternal. Same result. All of the methods worked on app preview but not when actually build it.
Try to use "mailto:" links to open the e-mail, same thing.
A simple ping ajax request work on app preview and not on built apk.
It looks like that the internet connection is blocked to the built app.
Again, the same simple html5 app, not the hybrid app, it works perfectly opening a simple link to external page. The same html5 simple app don't open the damn link on built apk.
So, temporarily, I'll have to compile the app with phonegap builder, but, I really liked Intel xdk. How can I make the app work with xdk?
There is an option in Intel XDK project settings to whitelist the websites you want the app to allow, set this to * to allow app to access any website

Facebook login on Meteor mobile App (cordova)?

I'm looking to build a mobile application using Meteor+Cordova. Looking to get the Facebook login to work first. Apparently the default accounts-facebook package doesn't work so I looked around atmosphere and only found "particle4dev:cordova-fb", so I tried using that.
I'm a bit confused about the app developer stuff. Normally I just use it for my website so its quite straight forward. In terms of setting up the login details (such as ID and token), do I register as if it's an IOS app? Or do I still register as if its web?? It asks me to download XCode SDK for FB, is that what I'm supposed to be doing? is the package mentioned above what I should be using, or are there more mainstream options available?
I was also facing problem with accounts-facebook package. It was using in-app cordova browser and failing at the time of oauth handshake.
I added cordova:com.phonegap.plugins.facebookconnect#0.11.0 to app and enabled it for single sign on from developer account on facebook.
If you face any problem then please look at my blog here. I have written a simple tutorial.
If there are still some people to fix this thing, this may help them.
I've just used the latest version on github.
removing the plugin and adding it again like this:
meteor add cordova:com.phonegap.plugins.facebookconnect#https://github.com/Wizcorp/phonegap-facebook-plugin/tarball/d8b0f6935a7c6e586188bf85f9da88a1c160790b
This above code with particle4dev:cordova-fb worked like a charm on android and it should work on ios devices also. It seems they fixed the issue in their updates.
accounts-facebook package works fine. I just created a new project and tried, you can refer to this screencast http://recordit.co/7JNpDSzJ9m
if you are using accounts-facebook, you need to register the app as web on fb
So I've been trying to use particle4dev:cordova-fb for awhile now. For those who are confused about how to implement it. First you add it as a package to your existing app. Then you add the facebookconnect cordova plugin. Then you add the android platform. Then try and run the android platform (meteor run android --settings settings.json). This should fail. Now go through the steps on implementing facebookconnect on Android. This should make sure it works on android now. However even after doing all of this and getting it to work, it still simply opens up the in app browser on android for some reason.

How to test iphone phonegap app on device without mac and xcode?

I build a phonegap app and want to test it on my iphone without jailbreak it.
I use windows and do not own a mac.
I have an apple developer account.
Is it possible to test my app without jailbreak, xcode and mac?
Thanks!
Phonegap Developer app (http://app.phonegap.com)
It's not perfect (some of the plugins are a little out-of-date), you can only use core plugins, etc., but it does work.
If you need custom plugins or plugins not included in the distribution (or newer versions of those plugins), you're sadly out of luck, I think. If you're feeling adventurous, google for "iOS toolchain Windows" (Or Linux). You /might/ get lucky, but there's not going to be any real support for it.
if it's just phonegap app, Try using ripples phonegap emulator PhoneGap emulator
Else copy all the static HTML & JS files and load them in your phone. Open the index file in the mobile browser.

Workaround for fast test of GWT app on iPhone?

I started a GWT project targeted for iPhone (and later for other mobile platforms). Now there's a problem:
* I can use Safari on iOS to test it, but I have to compile my app which takes a while even after performance optimizations mentioned for example how-do-i-speed-up-the-gwt-compiler;
* I can NOT use Safari in gwt-debug mode to make quick tests without compilation Java to JS because there's no GWT plugin for Safari on iOS.
So: is there a workaround for fast test of GWT app on iPhone?
Same thing here. I have been developing a GWT app using PhoneGap to bring it to iOs and Android. I ended up just using Firefox for development, every once in a while letting the app run in the iOS Simulator (coming with XCode). But since the app is using geolocation via PhoneGap, there was no way around installing it on the phone every once in a while to make sure it behaves.
I found some mobile dev emulators, one that is coming to my mind is called Ripple. There are others out there, but non of them worked for me.

Creating and installing a Plugin for mobile Safari on ios4 devices

I have created a simple web plug-in to write data to file system. This works as expected on a mac Safari. Here i have to manually place the plug-in on to the /Library/Internet Plug-Ins folder. My question is there a way to find if the plug-in is not present through JavaScript and if it is not then download and install the same. I also would like to know if the same can be done on mobile Safari running on ios4 devices?
Obviously you can not load Plugins of any kind in Safari on the iOS device. This is the main reason Flash does not exist on iOS.
On the Mac you can do that. But you need to create the plugin in C++ and for each platform independently.
If you code the plugin correctly, it should be possible to "detect" it using JavaScript. I highly doubt you can download it automatically, though. This would pose a very large security hole for every user.