I am getting some issue in this Cordova plugin. I do not know where I am doing wrong.
I am not able to call my app in IOS. Android is working fine.
I register my app with mytest://
So my issue is:-
$scope.appOpen = function(){
$scope.finalData.TrustedToken=md5.createHash($scope.finalData.agentid+$sco pe.finalData.Caller+$scope.finalData.key);
var data = JSON.stringify($scope.finalData);
window.open('mytest://'+data, '_system');
}
that code is working fine in Android but in IOS not working.
If I append simple string that is opening my app and also getting that URL there in handler. But above code not able to open other app
window.open('mytest://testData', '_system');
but that code is working fine. so how can i put variable in URL.
Related
I am using webview_flutter package, the Webview implementation is working correctly on Android, but when running it on IOS it is stuck in loading screen like that, and the error description is like that
(PlatformException(FWFURLRequestParsingError, Failed instantiating an NSURLRequest., URL was: )
I tried to implement it on IOS with webview_flutter, but it is not working correctly
I am using Appery.io app builder and my app is JQM with v5.3 libraires version
I have to js code in click event and run in Android but not in iOS.
I tried this and the same result. Anything argument in window.open run in Andorid but not in IOS (mail, https…).
window.open("tel:+34607507097");
window.location.href = 'tel:+34607507097';
Any suggestions . Thanks
Could I ask you to check if the in-app browser is enabled under App settings > Cordova Plugins and then check out this code:
if (window.cordova) {
cordova.InAppBrowser.open("tel:+34607507097", '_system');
}
I am trying to share a link from my react-native iOS app. But when I click the button to share, my app becomes unresponsive.
I am tried using both the code mentioned below, but nothing worked -
Share.share({
message:
this.props.app_urls.share + "\n" + this.props.app_urls.link_download
});
or
Share.share({
message:
this.props.app_urls.share,
url : this.props.app_urls.link_download
});
The same code works fine in android but its not working for iOS.
What can I do to make it working?
You can use react-native-share, I have used it without any issues.
You can use it like this [COPIED]
import Share from 'react-native-share';
const shareOptions = {
title: 'Share via',
url: 'some share url',
social: Share.Social.WHATSAPP }; Share.shareSingle(shareOptions);
Update:
The issue is still open on github, try using timeout, this will resolve the issue for now.
I am developing an app in ionic 3 for android and ios platform. For deeplinking, I am using cordova firebase dynamic link plugin.
This is working fine for android platform. But in the ios platform, though it is not throwing any error, it is not working.
My current ionic code.
this.platform.ready()
.then(() => {
return this.firebaseDynamicLinks.onDynamicLink();
}).then((dynamicLink:any) => {
console.log(dynamicLink); // always gives {matchType: "weak", deepLink:""} in ios
}).catch((error: any) => {
console.log(error);
});
The android part working fine. But in ios, the deeplink is always coming as empty.
my manually created dynamic url
https://xxxx.app.goo.gl/?link=<encoded url to mysite>&apn=<android bundle id>&ibi=<ios bundle id>
The provided link is returning HTTP 200 status when opening in the browser.
Testing steps (in ios):
In my iphone (ios9) I have placed this dynamic link in notepad
Then by clicking on the dynamic link the app opens.
In the console, I get
{matchType: "weak", deepLink:""}
I'm developing a mobile app both for iOS and Android, I didn't have any issues on android. But in iOS I encountered a problem when using plugins. Plugins I used were cordova-file-transfer and social sharing by EddyVerbruggen. Both plugins worked perfectly when I created my android app, but both got an issue when I did it in iOS. Both plugin only works after I restart the app. Why is that? I tried surrounding the code with $ionicPlatform.ready and device.ready but didn't help. What am I missing?
Here's a sample sequence code:
$scope.myButton = function(){
//I also tried surrounding this with
//document.addEventListener("deviceready", myfunction, false)
$ionicPlatform.ready(function(){
//mycode here that uses the plugin ex. ($cordovaFileTransfer.download)
});
}