I am sending out ParseObject through push notification so that I may store them locally on the users device. How can make a ParseObject from the JsonObject which is coming through the notifications?
The Best way to do it is to use the ParseObject.fromJSON() method.
It takes three parameters : JsonObject , DefaultClassName , ParseDecoder
An example code would be :
ParseDecoder decoder = ParseDecoder.get(); ParseObject obj = ParseObject.fromJSON(MyJsonObject,"object_class_name", decoder);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.