Skip to content
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

Closed

Conversation

nazeer1100126
Copy link
Contributor

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}

}
} catch (Exception e) {
throw new ConnectionFailureException(hostName);
Copy link
Contributor

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.

Copy link
Contributor Author

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";
Copy link
Contributor

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);
Copy link
Contributor

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.

Copy link
Contributor Author

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;

Copy link
Contributor

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']
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants