I am new to iPhone app programing and I am looking to make a simple app that can send and recieve a basic push notification. This notification would then trigger an action within the app when recieved. This cannot be sent over bluetooth or wifi as it will be over a long distance. How could I set this up?
You can use Firebase Platform. Read more
https://firebase.google.com/products/realtime-database
https://firebase.google.com/products/in-app-messaging
https://firebase.google.com/products/cloud-messaging
Related
I'm building an app where I'm using push notifications with help of Firebase Cloud Messaging and 'react-native-notifications' library. I managed to schedule a push notification in background.
Now I wonder, how can I schedule many push notifications (in background). Let's say, I have an array of strings and I want to make a push notification with a different string every day.
I know how I can make it with local notification but it means that the notification will not appear if the app is closed. Do you have an idea how it can be solved?
As I can see you managed to "show" a push notification when you are focused in the app.
If you want to send push notifications while your app is in the background you would need to use Firebase FCM.
Also if you need to send them in specific intervals I would recommend to use the Firebase callable functions to do so.
so I'm new to iOS development but I've been coding with java for years now.. but I've been trying to figure out how to send an integer, a single number from a variable from the iPhone to a label on an Apple Watch. I'm at the point of banging my head against the keyboard because it seems so easy but I have no idea how implement any of it. thanks for any help,,
One way to send data between iPhone and its paired Apple Watch is through the Watch Connectivity framework - you'll able to send an integer since it's a property list type.
Another way is by sending it up to the network and then fetching it from a WiFi or cellular connected Apple Watch. A more complex iPhone + Apple Watch app might make use of both.
My CRNA (Expo) app schedules local notifications for event reminders. The notifications are scheduled and received perfectly on Android, but not iOS.
I've created a reduced test case: https://github.com/nandastone/crna-expo-local-notification-test
Tapping the "Send Immediate Notification" button calls Notifications.presentLocalNotificationAsync() which IS then received by the callback.
Tapping the "Send Delayed Notification" button schedules a notification in 5 seconds with Notifications.scheduleLocalNotificationAsync() which IS NOT received by the callback.
I'm aware that notifications are not displayed by iOS if the app is in the foreground (https://forums.expo.io/t/psa-reminder-notifications-in-ios-foregrounded-apps/641), but I'm not receiving notifications at all in the Notifications.addListener() callback. Closing the app after scheduling a notification also has no effect.
I'm fairly certain the Permissions.REMOTE_NOTIFICATIONS check is not required for local notifications (it certainly isn't on Android), but I've included it to be sure.
Please help!
In my reduced test case I was missing an event listener for receiving notifications (Notification.addListener()).
The issue in my real app, however, was the limit of 64 local notifications on iOS. The app was scheduling more than 64 notifications at once, and they were not all firing.
I am developing app for iPad and i want to send text message(not iMessage) from my app. Is it possible through iPad which has WiFi with Cellular?
No this is not possible, since the iPad does not have any support for SMS. Even Apples own Messages.app does not support SMS on iPad.
You would need to setup an external server that handles sending the actual texts. As for making the app send texts using the iPad's GSM signal it is impossible
I am having a mute button in my app,when an incoming call comes when I tap on to that button the incoming call's ringtone should become mute.
Can anyone suggest me how to do this programatically.
Thanks to all,
Monish.
Applications cannot alter core functionality of the device. As such, you cannot interfere with the phone capabilities. Therefore, what you are asking for is not possible.
I am, of course, assuming that you haven't jailbroken your phone.