I was wondering how can I implement a Facebook "Like" and "Unlike" button right within my app without making the user leave the app. I know Apple has implemented this in their App Store app, so it is clearly possible. Here are some screenshots:
Notice how you can press the like and unlike buttons and you remain in the App Store application. I would like to link these like buttons to my Facebook page.
Related
I'm building a titanium alloy app and I'm using ScrollableView to show different pages of the app. I have set showPagingControl="false" and scrollingEnabled="false". Its got a basic login code so when the user is valid it goes to the next page.
I just realised that focusing the scrollableview and using keyboard left/right buttons changes the page which isn't ideal as the user isn't meant to be logged in. Is it possible to disable this?
I'm marking this as resolved as I think it was an error in my emulator
When switching between a Home Screen HTML web app to another app and back (iOS 7), the web app screenshot is just of a blank page. Is there a way of ensuring the screenshot reflects the actual state of the app before it went into background mode?
I think its because your app gets reloaded everytime. You might want to look at this thread here or here.
It looks like it is default behaviour and the only way you can work around this is to use localStorage.
EDIT: Of course you would have to save the state of your app everytime the user makes an interaction since you do not have AppDelegate methods which get triggered when your app goes to background.
I have implemented Facebook into my app but now I find that whenever I try using a UITableView elsewhere, the Facebook Login screen appears in the view instead and it is covering up the table that should be there. It is like the login screen functionality is in the background (I cannot interact with the login screen) but it is displayed in the foreground?
I implemented everything as the tutorial on fb shows... Including what is needed in the app delegate. If anyone knows what code I need to modify within the Facebook sdk it would be much appreciated!
Thanks
P.S. If you would like the code... I can post its just there is a quite a bit of it
Make the UITableWhite and it seems to cover up the Facebook
In my apps there is a button named "Back". When the user clicks on that button, the apps should be sent to the background, like when we click on the home button.
Even if you manage to do this, it is against Apple's HIG (because it will look as a crash to the user) - if you plan to publish your app on the AppStore you'll be rejected.
I think turning to background is impossible.
Make user press home button by using UIAlertView with no cancel button.
We can send an application to the background using SpringBoardUI or the SpringBoardServices private frameworks.
However, Apple won't accept this on the App Store.
I developed an app for IPhone and it's posted to itunes for approval. Now when I test the app I found out a strange behavior which I think should be rectified. When I launch app first time, the app launched and when I press home button it closes but when I tap the app icon to open it again it opens where it was last closed.
How can I change the view to first view of the app when it's launched after closing by Home screen button?
If you don't want your app to run in the background you need to set the "Application does not run in background" key in the info.plist file. This means that your app will completely restart every time your user returns to it. Take time to decide if this really is the best move for your app. Allowing users to return to where they left off or remembering information about the last session can be a big plus.
If you do not set the info.plist value like I mention above you can manage the way your app behaves by using the: applicationWillEnterForeground: in UIApplicationDelegate or you could observe UIApplicationWillEnterForegroundNotifications. Read up on all the available notifications and methods available for this in the UIApplication Delegate documentation.