I'd like to make some push alarm on iOS
When user set Alarm on specific time, and Server sends Weather Data by calling Weather API (ex OpenweatherMap) that time.
is it possible by using cloud functions in Firebase
I'd like to make some push alarm on iOS
When user set Alarm on specific time, and Server sends Weather Data by calling Weather API (ex OpenweatherMap) that time.
is it possible by using cloud functions in Firebase
Yes, this can be done with the request module.
See Use firebase cloud function to send POST request to non-google server where you will find:
// import the module
var request = require('request');
// make the request
request('put your external url here', function (error, response, body) {
if (!error && response.statusCode == 200) {
//here put what you want to do with the request
}
})
Note that you will have to activate a paid plan, because the free plan (Spark plan) only allows "outbound network requests only to Google-owned services"
Note also that you have to install the request package before being able to call it as shown above.