Comments (5)
The bundle identifiers you are checking with are for Android. On iOS for example Facebook's bundle identifier is com.facebook.Facebook
, same with the Twitter bundle ID you are testing with.
from appavailability.
Sorry but I think you're wrong. As I said, I tried opening a link with fb://profile on IOS and it worked.
The documentation on https://github.com/ohh2ahh/AppAvailability also indicates that twitter is twitter://
from appavailability.
The URI schemes and bundle identifiers are correct. But are your if and else
statements correct? Shouldn't they be somehow like this?
if(device.platform === 'iOS') {
fbCheck = 'fb://';
twitterCheck = "twitter://";
}
else {
fbCheck = 'com.facebook.katana';
twitterCheck = "com.twitter.android";
}
I've tested the plugin again with PhoneGap Build and couldn't find any errors. Here is the repository with a demo app showing AppAvailability in action:
https://github.com/ohh2ahh/AppAvailability-Demo-PhoneGap-Build
It runs successfully with:
- PhoneGap 3.6.3
- iPhone 6, iOS 8.1.3
- Nexus 5, Android 5.0.1
from appavailability.
Thanks for sharing that project. There was nothing wrong with the if/else other than the case of the comparison being incorrect.
I have it working now, many thanks!
from appavailability.
@JohnMcAvinue sorry about that, completely didn't see your conditional the first time I looked at the example just saw com.facebook.katana
and thought Android bundle ids.
from appavailability.
Related Issues (20)
- checkAvailability crashes with empty scheme HOT 2
- White screen in IOS application.
- 你好,能给下iOS写xcode的完整运行工程???
- Viber URL Scheme
- Not working on Android for com.facebook.katana HOT 1
- TypeError: Object(__WEBPACK_IMPORTED_MODULE_1__ionic_native_core__["cordova"]) is not a function.
- Not detecting any third party applications HOT 4
- App availability not working on ios.
- Not working on iOs with AngularJS HOT 4
- [Android] [com.facebook.katana] Package manager has died HOT 5
- npm ERR! 404 'com.ohh2ahh.plugins.appavailability' is not in the npm registry.
- plugin does not work with + iOS 11 HOT 4
- iOS - WhatsApp Business scheme HOT 1
- Targeting AndroidSdk 30, appAvailability.check is broken on Android phone With Android 11 HOT 1
- Not working on Android 11 HOT 4
- With android 10.1.1 it doesn't work.
- [Solved] Android 12 not work for AppAvailability HOT 2
- Wrong return type
- Plugin not working with Ionic 5 ?
- callback always "success" even uninstalling twiter app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appavailability.