Tag Archives: ios

stringByEvaluatingJavascriptFromString (iOS method, what is Android equivalent?)

Questions: In an iOS app, I used stringFromJavaScript = [webView stringByEvaluatingJavascriptFromString:@”document.getElementById(\”image\”).getAttribute(\”src”)”]; To get the src directory of the image that was being displayed on the webView. I want to do the same for Android. What are my options? Basically the intent is to capture the path so that I can email this same picture… ie.… Read More »

AESCrypt decryption between iOS and PHP

Questions: I am having a heck of a time figuring out how to decrypt a string encrypted with the NSData+AESCrypt.m (Explained here) I have been looking at a handful of other threads, but I only need the iDevice to send a string to a PHP file encrypted, and then it gets decrypted inside PHP (where… Read More »

iOS7 – receipts not validating at sandbox – error 21002 (java.lang.IllegalArgumentException)

Questions: I’m converting an app from iOS6 to iOS7. Before I used the deprecated transactionReceipt method so now I’m trying the recommended methods to retrieve the receipt, and then encode in base 64: NSData *working = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]]; // Tried 64 or 76 chars/line and LF or CR line endings NSString *receipt =… Read More »

how can I set a max value on my html5 date input so that it could be recognized by safari for iOS?

Questions: The title is pretty clear I guess? Here’s my date input : <input type=”date” id=”birthdate” name=”birthdate” value=”” max=”1993-12-07″ required/> In chrome, I cannot enter a date superior to 1993-12-07 using the little arrows of the field (but if I write the date myself I can). In safari for iOS, focusing that field just brings… Read More »

Canvas.toDataURL not working on mobile Safari iOS?

Questions: I tried the following. I created an <img> from an svg image. Then I draw it on a canvas and finally I exported it as PNG and set the resulting PNG as a new <img>. It works well on Android, Chrome, Safari, FireFox. But, canvas.toDataUrl() is not working on mobile Safari on iOS. It… Read More »

iOS 7 Access iPhone camera from Mobile Safari?

Questions: In iOS 6 you could use something like this: <input type=”file” accept=”image/*” capture=”camera”> <input type=”file” accept=”video/*” capture=”camera”> http://jsfiddle.net/GAbW8/embedded/result/ But in iOS 7 you cannot access the camera anymore. Ideas? Answers: Please try this: …type=”file” accept=”image/*” capture>