Device Single Sign-On - ibm-mobilefirst

I'm trying to implement Device Single Sign-On for a couple applications I'm "experimenting" with. The apps are in the same WL 6.2 project and are based on the "Form Based Authentication" Tutorial on developers site.
Ignoring the obvious - that I mistyped something - I'm mostly baffled that it works in the iOS Simulator, but not on my iPhone. I realize that working on the iOS simulator is no guarantee for the real device.
Someone showed me a video on this topic using an Android device, so I suppose the large question is - should this work on an iPhone? If so, any thoughts on what to look for?
TIA
-bob-

From the comments, by user3530200:
i was "signing" the apps improperly in XCODE. Once I confirmed that
the ID prefix was the same, it started to work. Item 3 at this link. For reference, step 3 # http://www-01.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/devref/t_enabling_simple_data_sharing_native_iOS.html

Related

Mac App crashes when I add a Distribution Profile

I've created a Mac App for Mavericks that uses MapKit. It works fine during development and testing on Xcode 5.1. Now I'd like to submit it to the App Store and I need a Distribution Profile which I've created successfully. Trouble is, as soon as I add it to my project, the app doesn't run anymore - it crashes every time without fail with this error message:
When I change back to "no provisioning profile", or to the profile that Xcode created during development, the app runs again.
My question: Is this expected behaviour, or will the app be rejected by the review team? I know that iOS apps don't run with their distribution profiles, but I'm new to Mac Development. Any insights into this way too complex topic are appreciated!
My app was approved - and the crash was indeed no issue for the app review team.
I had a chat with Apple about this who were kind enough to call me back and explain the issue. Looks like this phenomenon is "kind of" expected behaviour: Mac Apps may or may not crash when run with a Distribution Profile.
To avoid this problem, we can add both a Development AND a Distribution Profile to our app, without one having to replace the other. This was news to me. Had I however opened my tired eyes a bit wider I would have perhaps spotted the little disclosure triangle myself:
Perhaps this helps those with the same issue.

App Wireless Distribution not working in iOS7. Internet Connection needed?

In iOS6 I used to install some of my apps over an adhoc network without internet sharing. So the iPad had no internet connection. Therefore I use a typical html and plist file. Everything was alright.
Now, in iOS7 the installation is not working anymore. It is just stuck in "Waiting" and nothing more happens. (Note: It is still working on my iOS6 iPad)
First I thought something might be wrong with my plist, but then I copied the files to my IIS Server and installed it from there. Here I had a internet connection on my iPad and everything worked out.
Is it possible that the wireless distribution now needs an internet connection in iOS7 e.g. to check the ipa in the app store or something like that? Because this is the only difference I can see.
The app is signed with a valid distribution profile.
Thanks for your help.
It turned out the installation of apps over the air in iOS 7 really needs an internet connection now. The iPad tries to contact at least the following URLs before installing the app.
ax.init.itunes.apple.com: The device obtains the current file-size limit for downloading apps over the cellular network.
ocsp.apple.com: The device contacts this site to check the status of the distribution certificate used to sign the provisioning profile.
It seems in iOS6 it was ok if those URLs were not reachable and now in iOS 7 they have to be reachable.
Well i just had the same problem and I figured it out. At least on my xcode this is what happened. Turns out the application target release code siging identities auto set to developer and not their current state, from xcode 4.x, which is distribution. So when I went to distribute my application I kept getting the same error you had. So Click on your project name in your project explorer then click on the application target, not the project, and make sure the code signing identity is not set to developer for your releases. I have no idea why the code signing identities were automatically set to the developer profile, maybe there was some sort of bug when updating from xcdoe 4.x to xcode 5 that caused this. But now other devices are able to install the program. Hope this helps.

UAAppReviewManager Rate Function Not Working on iOS 7

Hey Stackoverflow People,
I'm working on implementing the UAAppReviewManager tool developed by Urban Apps (which is basically a super version of Appirater) into my app to have a rating and feedback function. I have devices (running iOS 5/6) where I've tested the Rate feature of the tool and its been able to properly redirect the user to the App Store after they select Rate the App from the pop-up dialogue, but for devices using iOS 7, it redirects the user to the App Store app and displays a pop-up saying the following:
The certificate for this server is invalid. You might be connecting to a server that is pretending to be "ax.itunes.apple.com" which could put your confidential information at risk.
Has anybody used this tool on iOS 7 and encountered this message before? If so, does anyone know what the workaround is? It seems iOS 7 processes things differently underneath with URLs and I'm not doing anything different or specific for earlier versions.
I am the developer of UAAppReviewManager. iOS 7 does not allow this url anymore so it was changed to a new value for iOS 7 in UAAppReviewManager. Update to the most recent (0.1.3) as of this writing and you should be fine

Developing a private iPhone tethering app

Recently, an app was released on the AppStore that secretly allowed wifi-tethering from your iPhone. It quickly got pulled by Apple. Out of curiosity, are there any libraries for the iPhone SDK that helps developers write an application that does the same thing? I'm assuming you can deploy the app to your iPhone for testing purposes without publishing to the AppStore is that correct?
UPDATE
I found this link as I was writing the question, so it looks like deploying the app to your own iPhone is not a problem as long as you have a developer certificate. So my only question then is regarding any libraries or code examples that can help with this tethering/proxy solution.
looks like there's some open source code already posted - https://github.com/tcurdt/iProxy/wiki

Getting started with Sencha Touch

I'm an Ext veteran but have a few rather simple mobile apps i need to create and naturally i'm looking at sencha touch. Ting is - most of the examples don't run up in Firefox/Opera.
I'm happily using Monodevelop as my IDE - this will have an Asp.NET backend - but can't even get the most basic setup working with ST....
What does everyone use for their development setups? How do you debug your apps?
I'm working in a vaguely similar scenario, and I mostly go for Google Chrome's Developer Tools or sometimes Safari developer tools, that's far from perfect but at least something.
However, I often try to isolate out problems not directly tied to the interface and then go back and solve them with Firefox/Firebug, which I find the absolutely superior development environment. It's often more than you think, especially if you're experienced with TDD. Try QUnit, for example ( http://docs.jquery.com/QUnit ).
It's probably possible to use Apple's developer tools (XCode/Dashcode or whatever..) for a more ergonomic experience, but I still can't be bothered.
(Here's to hoping for more compatible mobile web frameworks! I want my Firebug!)
They have explicitly stated that Sencha Touch only works on Web-kit browsers, namely Chrome and Safari
I am using VS 2008 SP1 with a large solution in TFS with a web application that hosts the JSON WCF services and Sencha Touch clients for iPad, iPhone and more. I have it working with WCF and am still learning myself. I admit it was quite a bear to learn, but things are starting to work. I have lists sizing to the client as expected too. The hardest part was the fact that Casini only hosts locally so we need to publish the web application to test with real iPads and iPhones. I also use Safari in OSX to help debug.
I sat around with Chrome, an iPhone and the Android emulator when I did my first one. I thought multi browser testing was bad normally but it's nothing compared to all the different Android versions, densities etc.
Chrome developer tools was the best I could manage on the PC though.
The best IDE I've come accross is Netbeans. Here's a guide to start you off :
http://techtalktone.wordpress.com/2012/02/22/using-netbeans-ide-with-sencha-touch/
The browsers you can test it on are : Safari, Chrome
The OS's on which it works : Android, iOS, BB6+
Hope this helps
Cheers :)