URL scheme as to send a request with *...# syntax - ios

Normally, in default calling application of iPhone ,I open number keyboard and pressed *100*stringnumber# (example *100* 12345678989 #), and press call button , it make a request to add money to my sim card account.
Now, I make an app, that it scan the string number auto by camera, and I want after scan that string, it can send the request to add money like the way in calling application.
I make an URL scheme with string: "tel:*100*stringnumber#" and send it to open calling app, but it didn't work, I search and know it just for dialog a phone number.
Is there any way or syntax to do that?

Related

Embed URL in barcode in Apple passes

Is it possible to embed URL in Apple passes in such a way that when scanned, they redirect to that URL? I want to POST information to an API when the barcode/QR code gets scanned.
I have replicated this requirement and I am succesfully able to embed an URL inside the barcode of an Apple Wallet Pass. Below are the steps I followed,
So all you have to do is just enter the url value as a string,
Encode exactly the text of the URL in the barcode: "https://www.passsource.com/info/". Include the protocol ("http://", here) to ensure it is recognized as a URL.
In my Java code, I am using a open source Java library to generate the Apple wallet pass which is Jpasskit. I have entered the set message with the url string value and encoded as below,
barcode.setMessage("https://www.passsource.com/info/");
barcode.setMessageEncoding(Charset.forName("utf-8"));
List<PKBarcode> barcodeList = new ArrayList<PKBarcode>();
barcodeList.add(barcode);
pass.setBarcodes(barcodeList);
After generating the Apple Pass, the bar code will be diplayed similar to the below image in the bottom of the pass
Scan the barcode using a qr code reader and it will display the message as below asking permission to open the URL in a browser,
Once you click "Open in Browser" option, it will neatly opened in the mobile browser sunch as chrome.

Swift's openURL method does not place a phone call with an Asterix sign (iOS 8.4)

I'm trying to place a PhoneCall in a swift application.
It works pretty simple with regular phone numbers using the openURL
method. However, when I try to use a string that contains an asterix (for example, dial the number (****02), the method returns false.
I've tried using string literals with no help.
Is it possible to do so at all? Thanks!
var url:NSURL = NSURL(string: "tel://****02")!
UIApplication.sharedApplication().openURL(url)
Phone Links
... To prevent users from maliciously redirecting phone calls or
changing the behavior of a phone or account, the Phone app supports
most, but not all, of the special characters in the tel scheme.
Specifically, if a URL contains the * or # characters, the Phone app
does not attempt to dial the corresponding phone number. ...
I remember reading an answer from somebody that Apple doesn't allow you to dial numbers that contain "*" or "#". If I remember the thread correctly, the rationale was that those let you do things like log in to automated phone systems, and that should be under the user's control.

Launch App from eMail with URL-Sheme

Hello I have a custom URL to open an app with a link. It works in the browser. But I want to send an email that another user can click the link in the email and the app will be started. Does anybody know a solution?
It is not possible to send an email with the link (myApp://). It always shows the the link as blank text.
Or does anyone know another solution to transfer data between an app to a other users app?
I think you need to write the link in href html tag
i.e. open my app
another solution is to try to add any text after the double slash i.e. myApp://open

send text code phonegap ios

I need to add a "share this app via text" button to my app. I am currently using Phonegap 3.3. I use this code
share via text
This works fine for Android, but on iOS devices it doesn't pass the subject or actual content of the message though.
No, it is not possible.
The sms scheme is used to launch the Messages app. The format for URLs
of this type is “sms:”, where is an optional parameter that specifies
the target phone number of the SMS message. This parameter can contain
the digits 0 through 9 and the plus (+), hyphen (-), and period (.)
characters. The URL string must not include any message text or other
information.
Answer was taken from this Link.
It is possible, if you make a phonegap plugin that in turn uses this Native API to get the result you are looking for:
Here's a tutorial that helps too:
http://iosdevelopertips.com/core-services/how-to-send-an-sms-progammatically.html

Browser extension overriding browser functionality / url

Is it possible to create a browser extension which can change where the user is taken?
I.E. If the user puts in a certain prefix or symbol the browser will not attempt to go to the address supposedly determined by the rest of the string or search Google, etc. for the rest of the string?
E.G. YT:sdfs232 would resolve to http://www.youtube.com/watch?v=sdfs232. I'm not specifically looking to do that, it's just an example.
You don't need a new extension or Greasemonkey to do this. Firefox has had this capability for a long time.
Just use a bookmark keyword search.
For example, create a new bookmark:
Press CtrlShiftB to open the bookmark library.
Right-click wherever you want it, and select New Bookmark....
Fill in the Name: Youtube.
Fill in the Location: http://www.youtube.com/watch?v=%s
Note the %s.
Fill in the Keyword: YT.
Fill in the Description: Handy direct shortcut to a video ID.
Give it tags, if you wish.
Click the Add button.
Now you have a handy flexible shortcut.
Test this one by entering YT dQw4w9WgXcQ into the address bar.
See the article for more information.
What your looking for is called a URL Scheme. http, ftp, ssl are all URL Schemes and you can define your own on any platform you want.
This is possible, and is used quite a lot by for example by IPhone apps to launch another iphone app from a browser window when the user clicks on a link. Thats how the iphone jumps from safari to itunes app.
More details here including most common schemes http://en.wikipedia.org/wiki/URI_scheme
This link gives basic info on registering a scheme on windows
http://msdn.microsoft.com/en-us/library/ie/aa767914(v=vs.85).aspx
Ususally they are used to open a seperate application though rather than simply a differnt url, but you could do what you want with a plugin.

Resources