Interactive notification support iOS 8 - ios

I have an existing application that supports both local and push notifications, with the introduction of iOS 8 and its newly added features (link referred) ,i thought of adding some of the features in app. My question is how to use interactive notification feature in my app.should i add any new framework; coding or an any tutorial link would be helpful. Also help me creating widgets for my app.

This video helped me
https://developer.apple.com/videos/wwdc/2014/#713
and this link about notifications UI guidelines too
https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/NotificationCenter.html
and this link for widgets
https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/NotificationCenter.html

Related

Add React-native app to 'Activities' panel on IOS

I am looking for informations about to add an App in the 'Activities' IOS panel in order to can add my app to the list of sharing apps.
I don't know if it's automatic or if it need some configuration.
Thanks
This is possible using AppExtensions in iOS SDK.
In React native, the docs talk about App extensions here. And an example app for sharing is available in a github repo.

React Native iOS Push Notification with Image

I currently have an app which was made with React Native. I need to display a local push notification, and there needs to be an image displayed within this notification. Currently, I am using the react-native-push-notification library for basic text notifications.
I have been looking for solutions but I have not found any way yet that I can add images into a notification. Is there some way to hook into native code that would allow me to do it?
Any help is greatly appreciated.
I am using react-native-firebase and it works great for me. It has an option for local notifications.
You can learn more about iOS notification with an image here: https://rnfirebase.io/docs/v4.2.x/notifications/reference/IOSNotification It gives an option to set a launchImage for iOS notifications. You should go through the documentation properly in order to install it properly.
I have used react-native-fcm, which is implemented using react-native-firebase. The support for issues are good enough and the document is well drafted for both ios and android. The pictures, icons and actions are configurable for both local and remote notifications.

Create shortcut to iOS app

I'd like to know if it's possible to create a simple watchOS app that basically has a button to do the exact same thing as another button on the main iOS app.
If so, how do I do this? Do you recommend any guide or blog post?
Yes, this is perfectly doable. I'd recommend this watchOS 2 tutorial. You're going to use the WatchConnectivity framework to communicate with the parent app. The specific method you'll use to send data to the parent app is sendMessage(_:replyHandler:errorHandler:).

How to pass objects/data between my iOS applications

I have an existing iOS application on the app store, and I am building a new companion app to work with this existing app.
I need to pass objects/data from this new app to my existing app when a certain action is taken. The behaviour I'm looking for is very similar to AirDrop but the data is passed to another app on the same device.
The objects I want to pass locally between apps are simply NSObject's.
As per your comment you wants to share NSObjects between your iOS apps. The best approach would be "Custom URL Schemes". But in this approach you may need to add or re write some parts in your old iOS App as well.
checkout this SO Answer for more info on implementing custom url scheme and history of sharing data between ios apps.
Apple documentation for sharing data is also available.
If your app supports greater than iOS 8 you can also use the new feature called "App Group Functionality"

Apple App rejection due to non native buttons and features

While developing a phonegap smartphone application which runs on ios/android and bb v6+, im using a web service call to google maps and using tags for navigating through the application. I received an answer from apple with the following rejection message:
We found the following issues with the user interface of your app:
- Did not include iOS features. For example, it would be appropriate to use native iOS buttons and iOS features.
Additional user interactive features are needed.
My app has 2 buttons, one for searching and one to view the search results, both of which are non-native, html < button > tags.
Is it possible to use the native iOS buttons with a phonegap project, i.e using the search button (magnifying glass with word 'search' underneath), with a plugin?
Is it possible that my app was rejected for using a Google Maps web service call? if that were the case, i imagine the rejection message would be similar to the rejection message seen in this previous post
Any ideas/suggestions/guidelines would be great,
thanks
You could implement the NativeControls plugin. Judging by your screenshots a the iOS tab bar should work well with your app.
Not using native controls isn't a problem in itself. However, your app is too close to the appearance of a standard iOS settings page, which means that anything which doesn't exactly match that will feel broken.

Resources