Simulate Push Notification (IOS5) without apn - objective-c

I want to simulate push notification without using apn.
I have tried to HOOK SBSystemLocalNotificationAlert
and use
[objc_getClass("SBSystemLocalNotificationAlert") presentWithLocalNotification:notification application:bundle];
but it is just an alertview not like ios5 notification center, and it looks like ios4's push.
I want to simulate push notification (IOS5) for my daemon like MobileSMS.
sorry for my english

If you want to simulate push notifications without APN service, you can try this library: https://github.com/acoomans/SimulatorRemoteNotifications
Works in the simulator too.

That's a tough issue. I do not know whether it is possible (correct me guys if I am wrong).
However if you only need this for testing, you can use Parse.com for sending push notifications. Their basic service that includes push notification is for free and they deliver a working example code how to integrate.

Related

Expo/React Native : A Continuous Alarm or Sound Notification (like receiving a call ) triggered by remote server

I am using Expo to build an app that will pop up a notification with custom sound and vibration when triggered remotely. The alarm/vibration would play until its dismissed by the user or it times out (say after 1-2 mins) .
Example use case would be when a partner needs my immediate help with baby, they can press a button the app and that would send signal to backend server which would then trigger the notification with alarm on the app at the other end. When the notification is dismissed, an acknowledgement message is sent with Yes or No type message. If the notification times out, then another message is sent like "no response".
Key point to note is that when the app is fully closed, the notification should still be able to pop up.
From my limited understanding , expo notification or push notifications in general cannot achieve this as they don't allow us to create notifications that directly open the app. Even a solution which works like phone or video calling apps (which open when someone calls you ) could work.
Any help would be much appreciated.
Many Thanks!
I looked up expo push notifications but they are limited in terms of customising the notifications.

selecting react native push notification

I am using react native and trying to add push notification.
My application need push notification because of chatting. I just need push notification to appear whenever the user receives chat message.
I've searched couple of libraries about push notification and found out firebase and react-native-push-notification.
Which one is proper library for this case and please tell me if there is other better way to solve this problem.
We're using invertase firebase notification library which is working so far better without any issues.
You'll get almost all the options which you needed for push notification customization like badges, etc.

How do I send notifications on an AndroidTV?

I have been reading the documentation pages for Notifications for Android devices but I want to build and display notifications on an Android-TV. I have used several apps in the AndroidTV and none of them shows notifications, instead sometimes they appear in the recommendations bar,which leads me to believe that it may not be possible to display notifications on this family of devices.
My end goal is to dispatch a Heads-up notification (priority flag set to MAX) so it can be shown regardless of what the user is doing.
Can someone help me to achieve this, maybe pointing me to some more specific docs?
UPDATE I have found this application that displays notifications, but I cannot understand how it works. Is it possible that it is mimicking notifications without working with Android's API?
I also think notification will appear as "recommendation" and not appear as "notification".
For the Notifications for Android TV app, I guess it is using custom designed Toast instead of Notification.

Local Notification with Adobe AIR on Android

Is there a way to send local notifications with Adobe AIR on Android? I mean really local notifications, I don't want to use a server for this, so when my application runs in the background, it should be able to fire a notification. I also need a way to update the status bar. Is there a Native Extension for that?
This ANE is what I was looking for.
http://www.nativext.com/ane-by-os/ios/notification-native-extension-for-air/
Yes.
You might find a free option on here:
http://sleepydesign.blogspot.co.uk/2012/07/ane-free-air-native-extensions.html
Failing that Distriqt ANE's definitely work.
http://distriqt.com/native-extensions

How to handle logout event using push notifications?

I have an app where I want to unregister for push notifications when the user logout. This can simply be done using
[[UIApplication sharedApplication] unregisterForRemoteNotifications];
However, is there no way to register (or prompt for registration) once a user login at a later time?
Answers to this question suggest there is not, so what is then the recommended way of handling this?
The documentation of notification services gives, as far as I can tell, no clue how to handle this.
All suggestions are appreciated!
You cannot re register for push notification programmatically. You must have to manage this by server side. See the answer
Enable or Disable Iphone Push Notifications inside the app