3
我需要postNotification在我的本機應用程序的Android。OneSignal postNotification的Android
我有這樣的代碼,但它不工作:
try {
OneSignal.postNotification(new JSONObject("{'contents': {'en':'Test Message'}, 'include_player_ids': ['" + userId + "']}"), null);
} catch (JSONException e) {
e.printStackTrace();
}