using flutter my application users should be able to select notification sounds online dynamically, i am not able to find the solution for that, technology i am using is flutter
I have tried local notifications as well as different packages like ringtone. in android it is working smoothly but for iOS its not working. it gives an error
Related
I want to create an Expo app for ios that will say something, and wait for my reply, via headphones. The headphones part is immaterial but it indicates what I want... which is for this to run while my phone is locked and in my pocket. Once I have replied, the app would proceed. I have built Expo apps but I am unsure of whether an app can still interact with me via audio and the microphone in this way while the phone is locked. Also, I don't know if Expo has introduced this sort of capability. I also don't know if React Native (i.e. ejected Expo apps) can do this sort of thing. The lack of apps that truly interact in this way (not via Siri etc) are far and few between so I'm assuming it's a hard problem to solve. I would be just as happy if I could have a browser page running on the device do the same thing, but I'm pretty sure webpages can't play audio and wait for replies when a phone is locked. Is any of this possible at this point?
I did research this online, just to be clear. I wasn't able to find an answer so I came here. I mention this because this whole post does have that 'can you research this for me' vibe. I'm just hoping someone has knowledge of what is possible.
There is a page in the expo documentation that says when not to use expo, and the following is in there:
The SDK doesn't support all types of background code execution
Background execution is the ability to run code when the app is not foregrounded or the device is sleeping. We support background geolocation (including geofencing) and background fetch, but we do not yet support background audio with the operating-system playback controls and you cannot handle push notifications in the background. This is a work in progress.
You can take a look at it here.
I think you can do it in React Native though, however I can't say if there is a library to do it, so you can try creating your own with native code. You can see how here for android and here for ios.
I am wondering if there is a way I can get all the notifications when they are posted or removed on iOS using Swift 3?
For example, the Android Wear iOS app has the ability to get all notifications and alert me when a new one arrived on my phone.
On Android, there is Notification Listener Service which I used to work with, but I would like to make it work for iOS too. However there seemed to be no resources online about that.
https://developer.android.com/reference/android/service/notification/NotificationListenerService.html
Any thanks would be appreciated. Thanks in advance!
UPDATE:
I understand that ANCS can do that and I found that I do not have to write any code (Swift) for it. However, most of the examples I found can only send the notifications and nothing else.
For the Android Wear app, it can connect to the BLE device within the app, send not just notifications, but also settings to the device. How can I achieve this?
I forgot to mention that the device I am working on is an Arduino.
I'm using MobileFirst Platform 7.1 with Paho MQTT (Internet of Things), I'm trying to implement a Hybrid Application with mqtt for Android and iOS.
I have tested the app in Android and it is working as expected, when it is in the foreground and background,
While in iOS, it does not work as expected. It works correctly in the foreground, but not in the background. I was testing using the iPhone Simulator of XCode and iPhone 6.
I found a project which implemented with MobileFirst and MQTT. from https://developer.ibm.com/mobilefirstplatform/documentation/integration/mq-telemetry-transport/
i am just adding host and port number and adding android,ios environment.but same problem facing android working iOS not.
at this moment what can i do ?
UPDATE:
in iOS, it works correctly foreground.but when i send background the "MQTT client" connection lost form broker.
this method fire :
this.client.onConnectionLost = function() {
alert("Connection lost!");
};
on the other hand , android , windows it work perfectly for foreground and background
For example :
I have a room there have a PIR sensor. it work like publisher . my application user is a subscriber .
when user out the room that that time she open application,subscribe and
send application background.
anytime someone entire the room that time , she will be get a notification.
Details on how to run in the background on iOS can be found here. This link also lists the actions that Apple allows to run in the background, if your app does not meet those criteria then it is likely to get bumped from the app store.
The list also shows which UIBackgroundModes to place in your Info.plist to flag that your app needs background access.
I can not found at least one way to mange it for hybrid application ,tried with several way ,failed and mange it easily for native application MQTT iOS background.
Todos
Plan support for new platforms (iOS, Windows Phone)
Add background service support in Android version
more check this link https://github.com/arcoirislabs/cordova-plugin-mqtt
I have implemented an app and I need a vibrate function to invoke on a button click in angularjs. It works fine on android, but on iOS it says that navigator is undefined.
I have used the below plugin for the vibrate function
https://github.com/apache/cordova-plugin-vibration
Is there any workaround I need to do get it work on iOS?
Maybe the device is muted? I had this issue where everything was logging correctly but my system volume was off. This post on Android solved it for me. In case your phone has different types of volumes (media, call, etc), un-muting System volume is what solved my trouble.
be sure that the device is un-muted. Many (most) devices will "mute" the vibration as well as the audio.
I'm running a VR app in Unity and would like to silence push notifications to the screen while it's running. I'm using Parse right now for push...
Is this possible, or does Apple not allow this?
My guess is this is not allowed.
But, if you have control of the device (for example using a demo device) you can use Guided Access to restrict the features available during use of your app.
https://support.apple.com/en-us/HT202612