In my config json file I have declared the default route to be handled by a custom handler, without specifying the activity, in the class field.
Everytime I get a deep link which is associated with the default route, I get an a JSONException.
I think this is because you handle the route in this way
private void handleRoute(JSONObject routeOptions, Map<String, String> routeParameters) throws JSONException {
HandlerExecutor.executeHandlers(routeOptions, routeParameters, handlers);
IntentBuilder.buildAndFireIntent(routeOptions, routeParameters, this);
}
The handler is called correctly, but the buildAndFireIntent execute this line instruction:
String activityName = routeOptions.getString("class");
which means the route must have a class field or a JSONException will be fired.
In my config json file I have declared the default route to be handled by a custom handler, without specifying the activity, in the
classfield.Everytime I get a deep link which is associated with the default route, I get an a
JSONException.I think this is because you handle the route in this way
The handler is called correctly, but the
buildAndFireIntentexecute this line instruction:String activityName = routeOptions.getString("class");which means the route must have a
classfield or aJSONExceptionwill be fired.