Can we send sms from nativescript angular playgrond? - nativescript

I have tried to send an sms in background without any user interaction in vain. Is that possible in android for examle ?

The project i am working on is to send sms bulk in background where input comes from a rest api. I gave a try to Nativescript but finally found out that going on native is more powerful and simpler.
For IOS... it is not our target in this project. We generally try our best not to develop anything for IOS. It is hell...no body likes hell i guess......may be daemins do :)
Thanks

The purpose of {N} Playground is to quickly test / share your code without having to do the whole environment setup on your local machine, therefore it is packed / configured with only the mandatory dependencies / permissions required to do the job.
Sending SMS is not a common feature and requires additional setup & permissions. So it can't work with Playground.
Moreover sending SMS in background without user interaction is never supported in iOS, limitation set by Apple. On Android you might be able to do it by acquiring required permissions from user at run time.

Related

How to notify user via telegram in spring boot app&

I have spring boot app which able to notify users via their emails about some events. In mentioned case app is using user email. I need same functionality for telegram - by user nickname or phone number my app have to notify user about event.
How to implement sush simple case?
I have already worked on a very large scale project. One of the requirements was to send notifications through various channels, including Telegram Messenger.
You can choose different ways to do this, The solution I can suggest to you is to use the APIs that Telegram itself has to communicate with the core.
I guarantee you that many of your needs will be met through these APIs.
I will share the link that helped me a lot before, I hope I could have helped you.
https://core.telegram.org/api
https://core.telegram.org/api/obtaining_api_id

Is there a API for developres for register cast apps?

Hello there i'm in a situation where i need to register a lot of new cast apps and i'm wondering if there is any API to do this task instead of doing it manually one by one on the SDK Developer Console as the docs suggest. I already created one Cast app that is working correctly so i'm familiarized with this console. But i haven't been able to find any documentation regarding some API to make this proccess more automated.
We do not have bulk registrations.

Slack: Get notification when Bot is offline

I searched the www for a solution to a problem of mine without finding an answer.
I need to get notificated when my bot in slack goes offline, but I don't know how.
To get notificated when he logs in is cacke, because I can set him to send a message, but when he's off there is no option to send a message.
I prefer PHP, Javascript, but other languages are also fine.
Thank you very much for your effort
There are many options how to setup a way to monitor your bot and get notified when it is offline.
One option that has worked well for me is to use an external website to monitor your bot. That website will send requests to your bot every couple of minutes to see if is is still alive and will notify you if the request fails. You may need to extend your bot a bit, so that he can reply to these requests in a proper way.
There are many website that provide this service. The one I use is uptimerobot, which also happens to be free for up to 50 monitors.

React Native Phone-based login

Are there any good resources for having Phone-based login for React Native?
I came across the blog post below which was using Parse + Twilio. Has anyone implemented this for React Native or worked with a similar solution?
http://blog.parse.com/announcements/phone-based-login-can-you-dig-it/
2 things:
1) parse is being deprecated, so don't bet on using that. See https://github.com/ParsePlatform/parse-server/wiki/Migrating-an-Existing-Parse-App
2) It seems like this is less about React-native and more about communicating with an API. All you'd need to do in React-native is send some data back and forth between a server based on tokens sent and verified on a phone.
You can have a look at react-native-digits https://github.com/fixt/react-native-digits. It is a port of Twitter's phone-based login digits. I've not used it personally though

Android Default SMS App permissions kitkat

After going through lots of codes provided over the internet, I am still unable to list my SMS app in default Android kitkat version. I don't know whether it can be done by adding permissions to the manifest file or through .java code.
The only thing I want is to, provide me some to-the-point code which I can make a new blank project(ABC), set the code in and that should set my app (ABC) the default sms app.
You can't directly set your app to be default, that would be a nasty security risk. What you can do is to signal to the user that you want your status to be changed and the user will decide:
Intent intent = new Intent(Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT);
intent.putExtra(Telephony.Sms.Intents.EXTRA_PACKAGE_NAME, activity.getPackageName());
activity.startActivity(intent);
However, to be eligible for becoming a default SMS app, you have to implement all of the functionality required from such an app, and this includes the handling of all SMS/MMS related functionality (sending and receiving, notifications, etc). This practically means that you have to rewrite the complete related functionality of the phone, including all receivers, intents, filters and code (and you should be aware that SMS and especially MMS handling is not part of the system, it requires quite a lot of your own code). And this is also the reason why you won't be able to receive an answer that fits into the confines of a SO answer. Way too much code: basically, a complete app.
There is no way out: if you want the user to replace the default SMS app, the user will rightfully expect that whatever app they choose will continue to support all of the functionality. Unless you provide all that, your app will not be listed among the eligible ones and the intent above will not work.
The Android Developers blog of Google has an article titled Getting Your SMS Apps Ready for KitKat that gives you the very first steps in learning what's expected from you in this scenario.

Resources