I want to build an IoT mobile app(iOS/Android) that will mainly do the following: user management(login/subscribe new user);add/configure new IoT device; interact with existing... moreI want to build an IoT mobile app(iOS/Android) that will mainly do the following: user management(login/subscribe new user);add/configure new IoT device; interact with existing devices. Interact with IoT devices is the easiest part for me. What I'm struggling is the first 2 items. For this I was thinking to use a cloud platform like AWS(https://aws.amazon.com/),Azure IOT(azure.microsoft.com) or WATSON IBM(https://www.ibm.com/watson/). Reading the docs of them I could not see how to perform the first task or how to register a new device via a mobile app. Any comments are more than welcome.
Also I was thinking building a database on a server that will manage the users, and sending/receiving messages from the IoT device/app as this app that I'm trying to build is not so data hungry(reading temperature and interacting with 2 relays)
P.S. I know about Blynk.io but the prices/conditions that they are offering is exceeding my budget. less
Yesterday Google presented at Google I/O the new notification system based on the new Firebase. I tried this new FCM ( Firebase Cloud Messaging ) with the example on Github.
The... moreYesterday Google presented at Google I/O the new notification system based on the new Firebase. I tried this new FCM ( Firebase Cloud Messaging ) with the example on Github.
The icon of the notification is always the ic_launcher despite I have declared a specific drawable
Why ? Here below the official code for handling the message
public class AppFirebaseMessagingService extends FirebaseMessagingService {
/**
* Called when message is received.
*
* @param remoteMessage Object representing the message received from Firebase Cloud Messaging.
*/
//
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
// If the application is in the foreground handle both data and notification messages here.
// Also if you intend on generating your own notifications as a result of a received FCM
// message, here is where that should be initiated. See sendNotification method below.
sendNotification(remoteMessage);
}
//
In every project I've tried to create in Android Studio, all usages of R are marked in red with the error message "cannot resolve symbol R", but the compilation succeeds and the... moreIn every project I've tried to create in Android Studio, all usages of R are marked in red with the error message "cannot resolve symbol R", but the compilation succeeds and the application runs. This is really annoying, as it blocks auto-completion and shows huge red waved lines all over my code.
I'm running Android Studio 1.7.0 and creating the project with default settings. A screenshot is attached:
This is my build.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
}
apply plugin: 'android'
In every instance in all of my classes where I reference R.id.something, the R is in red and it says "cannot resolve symbol R". Also every time there is R.layout.something it is... moreIn every instance in all of my classes where I reference R.id.something, the R is in red and it says "cannot resolve symbol R". Also every time there is R.layout.something it is underlined in red and says "cannot resolve method setContentView(?)". The project always builds fine. It is annoying to see this all the time. I have read many other questions on here about something similar but most involved importing projects from Eclipse. I am using what I believe to be the most recent version of Android Studio and the project was created with Android Studio and worked without any "cannot resolve R" problems. I would like to know what causes this if anyone knows. less