Category : unity3d

I am calling this Java method from Unity C#. Even though I am sendings byte[] instead of byte[], I am getting an error that says otherwise. Any ideas? Java method: public void sendBytes(byte[] bytes) { if (_connectionThread != null) { Log.i(LOG_TAG, "Sending " + bytes.length + " byte(s)."); _connectionThread.sendBytes(bytes); } else { Log.i(LOG_TAG, "Unable to ..

Read more

I implement this method in unity, Notification being received but only if I open notification tray also in the notification tray Icon of notification is blank also Notification not push(eg. Whatsapp new message). a beginner in coding please help if you have a proper solution ”’ public void Start() { Firebase.Messaging.FirebaseMessaging.TokenReceived += OnTokenReceived; Firebase.Messaging.FirebaseMessaging.MessageReceived += ..

Read more

I have a Unity project. One of the libraries that I use in my project has metadata in its Manifest file. Is there any way to keep change its value? When I add my value in the AndroidManifest.xml file remained the old value. <meta-data android:name=’MetaDataName’ android:value=’oldValue’ /> <meta-data android:name=’MetaDataName’ android:value=’newValue’ /> Source: Android..

Read more

I have create a plugin for my unity project, that receive active notifications on my smartphone, here code: public class PluginToReadNotifications extends NotificationListenerService { private static final String TAG = "NotificationListener"; private static final String WA_PACKAGE = "com.whatsapp"; @Override public void onListenerConnected() { Log.i(TAG, "Notification Listener connected"); } @Override public void onNotificationPosted(StatusBarNotification sbn) { if ..

Read more