let session = LRSession(server: "http://localhost:8080", authentication: authentication) let service = LRGroupService_v7(session: session) let groups = service?.getUserSitesGroups()
session = new SessionImpl("http://localhost:8080", authentication); GroupService service = new GroupService(session); JSONArray groups = service.getUserSitesGroups();
and a IntentService to your project: <receiver android:name=".PushReceiver" android:permission="com.google.android.c2dm.permission.SEND"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> <category android:name="com.liferay.mobile.push"/> </intent-filter> </receiver> <service android:name=".PushService"/> Configure app to receive push
Profiles • Specify App name, Bundle ID and select Push Notifications • Keychain Access, Certificate Assistant -> Request a Certificate • Select app from App IDs, Edit, go to Development SSL certificates and click Create Certificate • Development certificate to Keychain Access. Go to Keychain Access, My Certificate, export to p12 • Link