From the same directory as this readme, type in parse new .
and specify the
app which you will host AnyDevice. For more information, see the Cloud Code
Guide.
The iOS and Android AnyDevice applications assume the existence of a Model
object for each supported hardware model. Therefore, when setting up your app,
you must create the Model
class and populate it with initial
data. For example, to support the CC3200, one of the following methods can be
used:
If you can run a bash script, the model_import.sh script
located in the data
folder will automatically create a Model
entry for the CC3200.
We want a Model
to
be only public read (private write) since it is used by all users for that app.
Since a Model
entry has an icon
field, the image you want to use must be
supplied as an argument to the script. A default icon for the CC3200 is included
in the same folder and can be used as shown below:
./model_import.sh cc3200.png YOUR_REST_API_KEY
-
Go to your Dashboard in Parse.
-
Go to your application's Data browser and click on the 'Import' button on the left side menu.
-
Upload the Model.json file and make sure the 'Collection Name' is set to 'Model'. Click on 'Finish Import'.
-
Once the upload is complete, find the
Model
class and click on the 'Col +' button to add a new column. Select the type 'File' and type the column name 'icon'. Click on 'Create Column'. -
Upload an icon for the hardware model created in step 3. For the CC3200, the default icon is provided here. You can upload any icon of your choice if you wish.