Is there a way to ask the user and give access to the iOS notifications, so that the app can read/forward all iOS Push notifications, like Pebble is doing? It's not a security issue because I want to ask the user if I can...
In my case I want to forward the push notifications to a web server.
There is only one post here but it's about Bluetooth, and I don't find enough documentations..
The idea:
Send all my notifications to a webserver so that my Raspberry Pi can show them, on a LCD screen or just with a LED.
No, Apple would not allow this for an app, because of privacy.
You would need to connect your raspberry to your iPhone over bluetooth, then you could work something out, like Pebble.
Another way is to jailbreak your iPhone, and then figure out how to get access to notifications.
Related
I need to intercept the following push notifications from my application:
SMS / iMessage
WhatsApp
Telegram
I will be sending those directly to show on an external device display via Bluetooth.
I see Pebble are doing this:
https://help.getpebble.com/customer/portal/articles/1191239-setting-up-ios-notifications
Is this accomplishable? or Apple's sandbox policy prevents me?
If Apple are the problem, how does Pebble handle this?
Thanks :)
You probably want to look at ANCS.
"The purpose of the Apple Notification Center Service (ANCS) is to give Bluetooth accessories (that connect to iOS devices through a Bluetooth low-energy link) a simple and convenient way to access many kinds of notifications that are generated on iOS devices".
I presume this would require custom code to be written on the Bluetooth device, so it depends what you have access to. But as far as I'm aware, this would be the only way to send notifications for apps other than your own to be sent to a connected Bluetooth device.
I want to do a little bit geofence advertising but I want people to receive my notifications regardless of weather they have my app or not.
so just with their location on, they are gonna be able to receive the advertising.
is this even possible? if yes, can anyone tell me how?
Not possible.
You cannot get user-location unless user installs your app which has permission to access to user-location.
You cannot send push notifications, unless user installs your app which has permission to receive push notification.
SITUATION: None of iPhone's physical buttons (except volume) are operational. Thus, can virtually only activate screen by receiving a notification.
Instead of simply getting the buttons repaired, I want to see if it can be an opportunity to learn.
PROJECT: Make a simple Pebble app in Cloud Pebble that will send an (arbitrary) basic notification to my iPhone, waking it up. That way, I can activate the screen remotely by, for example, clicking the Pebble middle 'Select' button. [SMS may do, but seems to be a long route compared to Bluetooth communication.]
Possible?
You can easily make an app that will use the Twilio API to send yourself an SMS. You could also use one of the services that sends you push notifications.
I want to send a prompt (notification) to an iPhone device which is connected to my open wifi network?
What is the correct approach to achieve this?
You will need an APN server, and push those notifications through Apple's notification gateways.
You can make your own or use a SaaS like urban airship.
Alternatively, make a server on your computer and connect to it from the iPhone. Use websockets, when an event happens on the server make a local notification on the iPhone.
Local notifications are allowed on iOS but you might have trouble keeping the websocket connection to your server when the app is in the background.
Can an iOS device scan for presence of Bluetooth LE devices while locked and then respond to them by opening the app?
The scanning can definitely happen in the background.
In order to get the functionality that you're talking about the comment by owen is correct. I'll expand on it a bit.
What we do is when we recognize a BLE device that we're interested in and would like the app to open we send information to our server, from where we have the option to send a push notification if the user wants. This could probably also be achieved with a local notification set a few moments in the future. From there the standard rules apply for push notifications, if they opt to look at it your app can be opened and you can respond to the proximity of the BLE device that initially triggered. The user always has the option to ignore the notification though.