ios,html5,mobile,canvas,safariRelated issues-Collection of common programming errors
Mahesh
ios ios4 ipad
my iPad app developed using xcode 3.2.2 checked on simulator-3.2 as well on iPad device running iOS 3.2, it runs well. But when checked on iOS 4.2.1 iPad device it crahes after the launch image appears. Why so it is? What care should i take before uploading on AppStore? Here i am putting crash log:-<Incident Identifier: A6C1DD99-BF56-4D2F-942C-6780372586A8 CrashReporter Key: 37c9ebd602c38e275fab81f99cb0cf95f14095af Hardware Model: iPad1,1 Process: TimsMDForTab [2676] Path:
HurkNburkS
objective-c ios cocoa-touch nsarray
I have a NSObject class in which I am sending a NSDictionary object too, the class object then sets all the entries in the NSDictionary to their native types that are variables in the NSObject class.I would then like to pass this NSObject class into its own NSMutableArray however my app is crashing when this happens.below is the code calling the NSObject Class and then trying to set it into a NSMutableArray.NSArray *filteredArray = parsedDataArrayOfDictionaries; //dictionary entries are currentl
omar
ios c audio mfcc
I am trying to extract some features from audio files, MFCC to be accurate. Then I found a C library LibXtract, that would do the job for me.I am trying to use LibXtract in iOS project, I have followed this tutorial http://inote.apptrek.net/2011/10/howto-compile-native-c-codes-to-a-library-for-ios-development-in-xcode-take-mosquitto-for-an-example/but I got some problems in process, first I got this warning ld: warning: ignoring file ……./libLibXtract.a, missing required architecture i386 in
noloader
ios xcode openssl worklight fips
I am trying to run the sample code shared by IBM for FIPS on device.While running I am getting the below error. Any idea why?/Users/ctsmacminibtp5ne35/Library/Developer/Xcode/DerivedData/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone-cqxfkcnledkobshgrkgsluzvxofu/Build/Intermediates/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone.build/Debug-iphoneos/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone.build/Script-427B829D1393724500F223DC.sh:line 8:/Users/ct
Harween
ios xamarin crashlytics
We are trying to use Crashlytics api in a Xamarin.iOS environment. We have made a binding project on the static library provided by Crashlytics. When we use it in a little test project, it works perfectly.But, when we use it with our real project, in the same way, the native compiler fails, with the following errors :duplicate symbol _CLSClientAdvertisingIdKey in:\/Users/dave/Documents/TFS/MXT0/MAIN-IPAD-1.2-IOS7/xxx.Mono/obj/iPhone/Ad-Hoc/mtouch-cache/Crashlytics.a(CLSClient.o)\/Developer/Mono
Marth
jquery ios ajax post cordova
I have a question. I am developing a cordova application for ios, and I try to make an AJAX request using jQuery. The external server is whitelisted in the cordova.plist (in fact I whitelisted * just to be sure). I am sure the function is correct since I can manually call it in chrome, and it returns the correct data. It however returns the following header data when run in the application: {“readyState”:0,”responseText”:””,”status”:0,”statusText”:”error”}When crossDomain is changed to false it
jlw
ios avfoundation avasset avassetreader
After implementing the solution to encoding video (with audio) in this question, Video Encoding using AVAssetWriter – CRASHES, I found that the code works correctly in the iPhone Simulator. Unfortunately, certain videos fail to encode their audio while running on an actual iPhone 5 (and other devices).For example, videos generated from the WWDC 2011 sample code RosyWriter (https://developer.apple.com/library/IOS/samplecode/RosyWriter/Introduction/Intro.html) do not completely encode because the
Sohan
ios cordova inmobi
I tried using the js script for inmobi on my phonegap (2.8.0) app but it failed when i clicked on the ad. I contacted inmobi and they told me to use the ios sdk code. I have implemented this but the ad covers the top of my screen. I am no object c developer and i am at a loose end. This is the code i used to put the ads onto my screen. Does any one know how i can change the code to fit it at the top of the screen and then my app underneath.This is from my MainViewController.m- (void)webViewDidFi
Anamika
ios facebook facebook-sharer facebook-invite
I am trying to send invitation for App from my iOS native app to Facebook friend using facebook SDK using below method.-(IBAction)ShowFiendDialog:(id)sender {NSDictionary *parameters = @{@”to”:@””};[FBWebDialogs presentRequestsDialogModallyWithSession:FBSession.activeSessionmessage:@”my message”title:@”my title”parameters:parametershandler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error){if(error){NSLog(@”Some errorr: %@”, [error description]);UIAlertView *alrt = [[UIAlertView alloc
HappyProgrammer
ios iphone uisearchbar uisearchbardisplaycontrol
I was wondering is there any way to implement such UI features. As we know when we dragged in a search bar and searchDisplay control in xcode 5, we are be given a set of search controls including a search bar and a searchDisplayController.Instead of using the native search bar, I want to use a button to trigger the search display control like that one in the latest facebook app.I have tried to delete the search bar. But the display control failed directly. I have tried to insert the search bar i
Simon Milling
javascript flash html5 video mediaelement.js
I’m working on a site, where we use MediaElement.js as our video player. I’m trying to create a “chapter” feature for the player, where you click on a link below the player which contains start and end time for the chapter, and then it plays the part of the video between the two timestamps, using MediaElement.js’ setCurrentTime feature.I’ve got it working perfectly with the HTML5 player. My problem is with the browsers that doesn’t support HTML5 video or native playing of MP4-videos, and therefo
Shai
jquery android iphone html5 geolocation
The following codenavigator.geolocation.getCurrentPosition(getGeo_Success, getGeo_Fail, {enableHighAccuracy : true,maximumAge : Infinity,timeout : 15000 });Retrieves the current GPS position – BUT – there must be a valid GPS signal (and ofcourse, the device’s GPS feature should be turned on).If we look at other applications (say, Maps on Android devices) – it knows how to retrieve the last known position – even if I didn’t use an application that updates the geolocation before opening Maps – it
pm_2
html5 windows-store-apps windows-store microsoft-appstore
I have a Windows 8 AdControl set-up in this way:<div id=”adControl” style=”width: 728px; height: 90px; border: solid 1px red; visibility:visible;”data-win-control=”MicrosoftNSJS.Advertising.AdControl”data-win-options=”{applicationId: ‘abc-1234’, adUnitId: ‘12345’}”> </div>I know the control is displaying because I can see a red line around it. However, I’m not seeing any ads being rendered (the ad is registered). I have the same control in a Metro app using XAML and I see the ads f
user2045685
html5 html5-canvas kineticjs antialiasing
Here is the plunkrhttp://plnkr.co/edit/05OtTgW78wibGz57LraoWhen the viewport width variable is set to 1366. In the plunkr when u move the cursor near the centre u will see the lines are almost gray and is blurred. But when moved near the edges it is crisp and black.But in the same case when the viewport width is set to 1000 currently it is commented in plunkr. The lines are crisp at all the places, edges , centre.This scenario applies to all drawing and not only the lines any thing i draw in the
Michael Donohue
html5 cordova blackberry-10
I have now followed all the Blackberry documention found here and here. Yet some how I keep getting the following error:[BUILD] Populating application source [BUILD] Parsing config.xml [BUILD] Generating output files [WARN] Failed to find debug token. If you have an existing debug token, please copy it to %HOME%/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute the ‘run’ command. [WARN] Failed to find debug token. If you have an existing debug token, please
EugeneMi
html5 cordova titanium hybrid-mobile-app
Supposedly one of the advantages of hybrid apps is that they shorten the deployment and A/B testing cycle. Instead of having to publish the app, wait for approval, and then wait for users to update it, you can just update your HTML on the server.However, PhoneGap & Titanium package your HTML/CSS/JS with the app distribution. Is it possible to write an native app that servers HTML/CSS/Javascript from the server? UPDATE Just found out about trigger.io reload functionality (https://trigger.io/
Kabir Sarin
javascript html5 drag-and-drop
I’m trying to figure out a way to pass a native object through javascript’s event.dataTransfer for drag and drop. I’m writing the front end editor portion of a CMS, and want users to be able to drag and drop elements (of many different types, ranging from files to images to snippets of HTML to just about anything). That’s why I want to pass a real object, so I can attach data to it to specify things that will be necessary in order to know how to render it.One workaround is to use jQuery’s .data(
lukas
c# c++ silverlight html5 windows-phone-7
I recently decided to go into WP7 app development, but haven’t actually started learning silverlight/xna; Only C#. I already know C++ quite well.my Dad, who works for Microsoft, has recently told me that there’s no point to learning Silverlight because it will become irrelevant in the long run; due to HTML5’s superiority. However, Im not aware of any way to develop apps for WP7 using HTML5, and I barely know anything about markup languagez anyway.I wanted to get some proffesional advice on this,
NS114
javascript objective-c html5 phonegap phonegap-plugins
I’ve read Cordova’s tutorials, but I’m not sure they’ve given me enough information.EDITED TO SHOW UPDATED CODE:Let me show you my code:From the config.xml:<plugin name=”someMethod” value=”MyPluginClass” />Now for the Plugin.h: #import <Cordova/CDV.h>@interface MyPluginClass : CDVPlugin- (void)someMethod:(CDVInvokedUrlCommand*)command;@endNow for the Plugin.m:#import “Plugin.h”@implementation MyPluginClass- (void)someMethod:(CDVInvokedUrlCommand *)command {NSLog(@”YOU ARE READING THI
Alex Kelly
java android html html5 webview
I’ve recently noticed that when I load a webview based off code from a file (using assets or a local directory), the WebView will leak the memory once the destroy() method is called. I’ve narrowed it down to a referencing issue. The program/webview makes copies of the original view and loses the references in the JNI table – this eventually causes the program to crash after 512 entries.I have seen this article, but the non-leaking webview fix does not seem to work with HTML in the assets or ext
ThinkingStiff
iphone mobile springboard spring-board
basically im making a springboard tweak and ive got a textfield with keyboard, when i click done on the keyboard i would like the keyboard to dismiss, ive tried- (BOOL)textFieldShouldReturn:(UITextField *)textField { [textField resignFirstResponder]; return YES; }-but i just get loads of errors when trying to compile ;L, any help would be appreciated lotsHere’s the error’Mahmood1s-Mac:sbhomesearch mahmood1$ makeBootstrapping CydiaSubstrate… Compiling iPhoneOS CydiaSubstrate stub… default tar
Tom
php authentication mobile joomla2.5
EDIT Originally I thought Oauth2 is the way to go but maybe it is not. I’ll leave that out of this question for now as it is confusing things.I’m creating a mobile app (Android/iOS). I’d like the user to enter their credentials (user/pass) in the mobile device which would then get sent to my server (Joomla CMS) to verify the credentials and create/send a token. I don’t want to store the user/pass on the device just the token.In addition this token needs to have a timeout to be refreshed when nee
amirpc
java android mobile phonegap phonegap-plugins
I’m trying to add an iOS “TabBar” style navigation using android native controls – so ActionBar – to my PhoneGap application. I’d like my JavaScript to receive callbacks when the tabs are changed, and ideally I’d like the ActionBar to be completely dynamically populated by the JavaScript as well (like iOS Native TabBar in PhoneGap). I know I can do this in the JS/CSS/HTML layer but I’d like to have a serious go at using native controls before I do that.I’ve successfully added an ActionBar to my
Cory
java java-me mobile camera mmapi
I’m trying to do an image capture on a high end Nokia phone (N95). The phone’s internal camera is very good (4 megapixels) but in j2me I only seem to be able to get a maximum of 1360×1020 image out. I drew largely from this example http://developers.sun.com/mobility/midp/articles/picture/What I did was start with 640×480 and increase the width and height by 80 and 60, respectively until it failed. The line of code is:jpg = mVideoControl.getSnapshot(“encoding=jpeg&quality=100&width=” +
Peter Alberti
facebook mobile settings
We have a post on a FB wall. It points to http://tinyurl.com/{something}.When the link is clicked in a non-mobile web browser, it works fine: TinyURL redirects the user to our web site using the appropriate URI including a special querystring.When the link is clicked in a mobile web browser on my Android, it fails with the error in the title of this question.When the link is clicked in the FB native app for iPad and in Safari on the iPad, it works fine.I have tried adding our URL to the Mobile
Peter Mortensen
java-me mobile nokia
How can the platformRequest method defined in MIDP 2.1 JSR be used to open a video on a Nokia 6212 Classic?The Forum Nokia Library states:In Series 40, native applications arelaunched with platformRequest(localappmethod. The following opens the Photosfolder in Gallery.platformRequest(“localapp://gallery/show?folder=C:/predefgallery/predefphotos”);Currently I have tried the following (and more):I did make sure the resource as availble at the location given as the folder argument.platformRequest(“
nasroazro
java android mobile bluetooth
I get this exception:Exception: Failed to connect; [10051] Une opération a été tentée sur un réseau impossible à atteindre. javax.bluetooth.BluetoothConnectionException: Failed to connect; [10051] Une opération a été tentée sur un réseau impossible à atteindre. at com.intel.bluetooth.BluetoothStackMicrosoft.connect(Native Method) at com.intel.bluetooth.BluetoothStackMicrosoft.access$700(BluetoothStackMicrosoft.java:44) at com.intel.bluetooth.BluetoothStackMicrosoft$ConnectThread.run(Blueto
brianvaughn
ios flash mobile air air-native-extension
I’ve been developing a mobile application for Android and iOS for several weeks. It has been built using a single ANE up until this week when I attempted to add a second. This new ANE has native code for the iOS platform and a pure-ActionScript (default) implementation for Android and the simulator. Android and the simulator work fine with the new ANE, but when I attempt to run my app on iOS all I see is a black screen.I’m able to export a release build without any errors and I’m able to execute
soshiki
jquery asp.net web-applications mobile
I’m very new to web apps so this might be a really silly question. Basically I want to have a web app which synchs with a database, it also should be able to send data which will be synched with a database.My question is about downtime. If the web app loses its net connection, is there a way for it to save the information inputted into it until it regains a net connection and can synch it to th database?Thanks for any help!
Usch
flex actionscript-3 list mobile
I´am trying to create my own custom list component in a Flex mobile Project which fires an Event when the user touches a listitem and holds the finger down for a given time. Some kind of “longTouch”-Event like its implemented on native android listitems to edit the entry for example.I tried to listen for the MOUSE_DOWN Event to start a timer and dispatch an event when the timer finished. But this approach failed because i cant get the listitem that was pressed by the user because the List compon
gordyr
javascript canvas
My app requires the manipulation and temporary storage of many large images. In order to manage this efficiently we are using blob URL references to all images.However, following manipulations we obviously need to create a new Blob URL for the new client side generated image, taken from a canvas.Firefox has support for native Canvas.toBlob() which works perfectly, we then create a new blob url reference from this blob like so:var url = window.URL || window.webkitURL;var bloburl = url.createObje
Kris Erickson
php javascript canvas html5-canvas
Full code can also be found here: https://gist.github.com/1973726 (partially version on jsfiddle http://jsfiddle.net/VaEAJ/ obviously couldn’t have php running with jsfiddle)I initially wrote some code which took a canvas element and saved it as an image (see working code here: https://gist.github.com/1973283) and afterwards I updated it so it could process multiple canvas elements but the main difference now is that the image data is passed through to my PHP script via jQuery ajax method rather
naxxateux
ruby canvas selenium watir watir-webdriver
I have a canvas element on my page and I want to click on specific (x, y) coordinates in this canvas. I use watir-webdriver:element = browser.driver.find_element(:id, ‘canvas’) browser.driver.action.move_to(element).move_by(x, y).click().performBut this code just clicks on the center of the canvas, not the specified (x, y) coordinates. What is wrong with it?UPD: So now I use this code:element = browser.driver.find_element(:id, ‘canvas’) browser.driver.action.move_to(element, x, y).perform browse
Ernest
html5 canvas font-face
When I draw a text in a canvas with a typeface that is loaded via @font-face, the text doesn’t show correctly. It doesn’t show at all (in Chrome 13 and Firefox 5), or the typeface is wrong (Opera 11). This type of unexpected behavior occurs only at the first drawing with the typeface. After then everything works fine.Is it the standard behavior or something?Thank you.PS: Following is the source code of the test case<!DOCTYPE html> <html><head><meta charset=”UTF-8″><tit
Joubert Nel
jquery canvas resizable
ANY DOM element can be made resizable according to this page: http://jqueryui.com/demos/resizable/However, it seems that this doesn’t work for the CANVAS element. Possible?
Wabbitseason
canvas editor wysiwyg
What is the most efficient WYSIWYG editor that can be used on a blog?I’m looking for something like the one in Gmail, but I’m really annoyed that sometimes the cursor gets stuck in some invisible wrapper div tag or after selecting and deleting a part of text the cursor jumps to the end of the whole block.The ideal editor doesn’t have to be backwards compatible and may use emerging technologies. I don’t have anything specific in my mind but I’ve heard about the Bespin project and wondered maybe t
Nathan Tornquist
android performance canvas
If you always have to draw the same rectangle, it is faster to do it with a static bitmap or with canvas.drawRect()?For this example, the are four layered rectangles. So a boarder with a fill color, and then a boarder between a middle color and the fill color. So four paint.setColor() commands and four canvas.drawRect commands or one canvas.drawBitmap().
Tom Murray
javascript html5 graphics canvas
I have the following code for writing draw calls to a “back buffer” canvas, then placing those in a main canvas using drawImage. This is for optimization purposes and to ensure all images get placed in sequence.Before placing the buffer canvas on top of the main one, I’m using fillRect to create a dark-blue background on the main canvas.However, the blue background is rendering after the sprites. This is unexpected, as I am making its fillRect call first.Here is my code:render: function() {thi
MWA
javascript jquery html5 canvas
I have a very nice pie/donut chart drawn with chartjs.org. Works great. Easy to implement. Animates nicely. I also have a label that needs to update when the user hovers over the chart. Mousemove fires and returns the rgba coordinately as expected in FF and IE10/9. But not Webkit. It seems to get all mixed up… Unexpected behavior coming from Chrome/Safari. Any idea how to fix this?This is the where the problem exist:var canvasOffset = $(this).offset(); var canvasX = Math.floor(e.pageX – canvas
kangax
javascript json canvas fabricjs
I am trying to save data in JSON and load it back into the canvas with fabric.js I keep getting errors likep with the following simple code:canvas.add(new fabric.Rect({ width: 50, height: 50, fill: ‘red’, top: 100, left: 100 })); var c = canvas.toJSON(); canvas.clear(); canvas.loadFromJSON(c);I get:SyntaxError: JSON.parse: unexpected character [Break On This Error] var Cufon=(function(){var k=function()….Image.fromElement.async=true})(this);When I use my own JSON, It validates well, but I stil
SKFox
sql safari html5 client-side-scripting
Instead of doing an each loop on a JSON file containing a list of SQL statments and passing them one at a time, is it possible with Safari client side storage to simply wrap the data in “BEGIN TRANSACTION” / “COMMIT TRANSACTION” and pass that to the database system in a single call? Looping 1,000+ statements takes too much time.Currently iterating one transaction at a time:$j.getJSON(“update1.json”,function(data){$j.each(data, function(i,item){testDB.transaction(function (transaction) {transacti
Brock Adams
javascript safari webkit native jquery-lint
I’m unable to use native code functions as JavaScript objects in WebKit-based browsers. Is it impossible to alias these functions directly? This is easiest to explain by example, so here is what I am running in the Developer Tools console:console.warn; // Outputs: // function warn() { // [native code] // }console.warn(“console.warn”); // Outputs: “console.warn”var _c = console; _c.warn(“_c.warn”); // Outputs: “_c.warn”var _w = console.warn; _w(“_w”); // Outputs: “TypeError: Type error” on Sa
Dagg Nabbit
javascript iframe constructor safari
Update: Since this is unanswered, I’m changing the question slightly. Comments on the post on Dean’s blog linked below indicate this technique does not work in Safari. My question now is: does the technique described below work* in modern browsers, and in particular can someone confirm whether it works in Safari?Here’s a more recent blog post. It says at one point:Sandboxed natives … are supported in a variety of browsers, including … Safari 2.0+…but later says that the iframe technique is
JLDiaz
google-chrome safari version websocket
I wrote a (not-so-)simple websocket server in python, which listens in a port, performs the handshaking and then sends to the client a sequence of messages (spaced out a random interval), containing numbers.I wrote a javascript client and tested it under Chrome and Safari. I discovered that Chrome and Safari use different WebSocket versions. For example, Chrome uses Sec-WebSocket-Key (and expects Sec-WebSocket-Accept), while Safari sends instead Sec-WebSocket-Key1, Sec-WebSocket-Key2 and a bunch
Paul D. Waite
javascript iphone ipad safari mobile-safari
Is it possible to control the display i.e.(show/hide) of keyboard in iPad Safari through code?I have 2 form fields;1. Text box (say Name)2. Select list/Dropdown (Say State)My question is when user moves focus from Name to State, the keyboard is still there..Why is it so and how can I hide the keyboard when focus moves to dropdown?Thank you.
tribalvibes
ios facebook web-applications uiwebview safari
Our webapp works nicely inside the Facebook native iOS app. However, we have some links that need to open a new window in mobile Safari rather than opening inside the Facebook (UIWebView?) app. Just a plain HTML <a href=”http://site….” target=”_blank”> doesn’t do it–still opens within the Facebook app (latest version.) Any way to get a plain link or a window.open() to switch to Safari for the page load ?
Tarandeep Gill
javascript parsing date safari
I have a date string with the following format:2012-09-20T01:36:51.556ZIts a date field returned from mongodb as is. Chrome, FF, and IE are able to parse this string, however, Safari fails with an error Invalid Date. I have tried DateJS, but it fails to parse this date too. Any ideas how can I easily parse this date? Or, what particular thing is causing Safari to fail?I am using the native node driver for mongodb. And it returns date as a string in the above-mentioned format.
Tim
ios safari ios7 mobile-safari custom-url
I’m seeing what appears to be a bug with the way that map links (and apparently all custom URLs) are handled in iOS7. I’d like to know if anyone else is seeing it.Steps to reproduce:Go to Safari Type “maps.apple.com/?q=34.12345,-118.12345” in the address bar Select All -> Copy the text for further testing. Click “Go”One of two things will happen:A. You’ll be immediately taken to the Apple Maps app and the lat/lon will display with a pin. or B. You’ll receive a dialog asking if you’d like to open
Vahur Roosimaa
javascript html5 safari drag-and-drop
Last night, I thought I’d do a quick project to demonstrate HTML5 capabilities and to try some things out. However, I can’t seem to figure out how to get drag and drop to work in Safari, while it works perfectly in Chrome and Firefox. More precisely, it seems that drop event does not fire in Safari, when you try to drag an image inside the website into the drop area. At the same time it does fire when you drag and drop a file from desktop.I’m not really sure, but I’m pretty certain that when I t
user2603628
safari websocket back
If I open a page in Safari for examplehttp://stackoverflow.comthen open the safari console and open a websocket, for example:var ws = new WebSocket(“ws://ws.dslreports.com”)then I click a link on the page, and then press BACK the back cache is now ignored and the page is reloaded. I observe this on Safari 5.0 (which first introduced hixie websocket support) and latest Safari 6.x which uses hybi. Chrome and Firefox and other browsers supporting websockets do not seem to invalidate the back cache
Web site is in building