How to get One Signal unique user id in Mobile?

Got the unique Id of OneSignal by using the following code which is in official site of OneSignal. OneSignal.idsAvailable(new OneSignal.IdsAvailableHandler() { @Override public void idsAvailable(String userId, String registrationId) { Log.d(“debug”, “User:” + userId); if (registrationId != null) Log.d(“debug”, “registrationId:” + registrationId); } }); Refer: Getting code in Official Site This Above Code is Deprecated. Please … Read more

JavaScript Object Id

If you want to lookup/associate an object with a unique identifier without modifying the underlying object, you can use a WeakMap: // Note that object must be an object or array, // NOT a primitive value like string, number, etc. var objIdMap=new WeakMap, objectCount = 0; function objectId(object){ if (!objIdMap.has(object)) objIdMap.set(object,++objectCount); return objIdMap.get(object); } var … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)