Could somebody tell me, how can I find out programatically the state of settings, for example if "Send as SMS" is enabled in Messages application? I know how to programatically open this part of settings but I just want actual value.(I want to find out, if user can send sms or just iMessage to iPhone users)
Thanks a lot!
Related
Hello anyone that can help. I recently downloaded youtbe vanced. YouTube vanced is a modified version of the original YouTube which blocks all AD's on the app. The app works great only one thing. The thing is that I am not getting push notifications when new content is added from the subscribers. Can anyone help with this issue thank you in advance.
Try these steps:
Go to Settings >> Apps >> VancedMicroG (i am assuming you have non rooted phone and have installed MicroG for Youtube vanced.).
You might see a Gear Icon or Additional Settings in the app depending on your android version. Click on that.
There will be a highlighted text saying Battery Optimization is On or something like that. Turn in off and you will get Youtube vanced Notification.
In YouTube you get a push notification for the channels that you have subscribed and have the bell ringed. If you have that done already go to
settings -> apps -> YouTube vanced
and check the box saying show notification. If it is already ticked go to app's setting and enable notification.
I have designed an app where the app needs to enable the GPS. There is a page for the user which ask use GPS? To this answer there are 2 options YES and NO. Now my concern is when user clicks on YES he should be directed to settings page and that part is done but now after enabling the GPS from this page the user should redirect to the app again but unfortunately there is no way as there is no back button in the setting page.. Please suggest what I can do in this regards?
As far as I know, the only way to open your app (aside from user tap your app or a related notification) is to do some custom url handling. but unfortunately you can't do such a thing. The other thing you can try is to:
Setup a background thread when your app goes to background
check for location service availability
if it changed to your desired value, open a custom url which in turn will open your app (you should register for hat particular url in your info.plist and such)
but There are some things to keep in mind:
Such Behavior will almost surely get your app rejected by Apple.
in iOS 9+ Apple added a new feature that will help you in this particular problem. when an app gets opened from another app (settings.app for you here) it will add a Back to xxxx in place for network indicator to help user get back were he was.
So, IMHO leave the user experience be as it is for all other applications and don't worry about how he would get back to your app.
I am working on an app that can automatically send a message to some specific ones (either emails or SMS) under some dangerous circumstances.
When someone is in danger, he or she has no time to press the send button. Is it possible for the user to approve sending messages in the app in advance, so the app can automatically send emails or SMS to others without telling the user?
I searched in StackOverflow, but found no similar answers.
This is just for a demo. It does not need to be approved by Apple.
Thanks in advance!
Take a look at the ChatKit framework.
It uses iOS private APIs to do what you want to achieve. Don't try to submit it to Apple though.
With this framework, you can programmatically compose and send text messages through iMessage/SMS.
I have an app that is properly posting notifications with the default iOS notification sound.
I would like to allow my users to choose their own sounds. I know I could do this in my app, but I'd rather do it in the Notifications area like one can with the standard Messages app.
I have looked and don't see anything new talking about this. Any help is appreciated. Thanks!
How to set up the known wifi with my known account/password in the iOS app ?
I want the user open the app and set up wifi background without letting user know. Can we do that with code ? and how if we can ?
If we can not, is there any alternative solution to resolve this problem with best user experience ? thanks
AFAIK, you cannot setup known wifi networks inside your app. What you could do is add the key 'UIRequiresPersistentWiFi' to your app's plist. That will ensure that the system shows a dialog informing the user about the requirement of wifi for the app. If i remember correctly, in case wifi is disabled, the dialog also displays a settings button by default which the user can click and be redirected to the 'Settings' app. HTH.