-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sms notification #410
sms notification #410
Conversation
} | ||
} catch (Exception e) { | ||
throw new ConnectionFailureException(hostName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swallowing exception. Please check if it's intentional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We removed this exception , when sms will be send at that time it will throw validation message for the same.
/** | ||
* Server key. | ||
*/ | ||
public static final String SERVER_KEY_ID = "AAAAToBmqQQ:APA91bEodkE12CwFl8VHqanUbeJYg1E05TiheVz59CZZYrBnCq3uM40UYhHfdP-JfeTQ0L0zoLqS8orjvW_ze0_VF8DSuyyqkrDibflhtUainsI0lwgVz5u1YP3q3c3erqjlySEuRShS"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move to configuration.
b.notification(notification); | ||
b.dryRun(false); | ||
b.contentAvailable(true); | ||
b.timeToLive(30); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See if requirement makes sense to make this parameter configurable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need of configurable parameter for this.
) | ||
COLLATE='utf8_general_ci' | ||
ENGINE=InnoDB; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove COLLAGE and Engine hard codings from migration script.
[group: 'org.apache.activemq', name: 'activemq-broker'], | ||
|
||
//jso simple | ||
[group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refactor usage of json-simple to GSON library. This will lead to ambiguity during imports and non-standardization of json parsing in the platform.
1)to register client
method - post
url- /device/registration
body
{
"clientId" : 3
"registrationId" : "czxczxczxcv:czxcmzxcnbzx"
}
to get registration by client
method - get
url- /device/registration/client/{clientId}