This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-keep class com.sessionm.api.** { *; } | |
-keep class com.sessionm.net.http.DownloadService { *; } | |
-keep class com.sessionm.ui.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
//Required | |
compile 'com.sessionm.sdk:sessionm-sdk:1.11.6' | |
//Optional | |
compile 'com.google.code.gson:gson:2.6.2' | |
compile 'com.squareup.okhttp:okhttp:2.6.0' | |
compile 'com.google.android.gms:play-services-location:8.4.0' | |
compile 'com.google.android.gms:play-services-gcm:8.4.0' | |
compile 'com.google.android.gms:play-services-ads:8.4.0' | |
compile 'com.squareup.picasso:picasso:2.5.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allprojects { | |
repositories { | |
maven { url 'http://maven.sessionm.com/public' } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Geofence requires location permission --> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | |
<!-- Keeps the processor from sleeping when a geofence event is received. --> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<!-- Add geofence service inside application block --> | |
<application> | |
<service android:name="com.sessionm.api.enterprise.GeofenceIntentService" /> | |
</application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ensure app Background Modes are enabled for Location updates and Background fetch in the Info.plist: | |
<key>UIBackgroundModes</key> | |
<array> | |
<string>fetch</string> | |
<string>location</string> | |
</array> | |
// Then ensure at least the Key for NSLocationAlwaysUsageDescription is present: | |
<key>NSLocationAlwaysUsageDescription</key> | |
<string></string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// In your LAUNCHER activity | |
// MyApp | |
// | |
// | |
public class BaseActivity extends Activity implements SessionListener { | |
MessageData messageData; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ExampleAppDelegate.m | |
// MyApp | |
// | |
// | |
#import "ExampleAppDelegate.h" | |
#import "SessionM.h" | |
@implementation ExampleAppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- GCM requires a Google account. --> | |
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
<!-- Keeps the processor from sleeping when a message is received. --> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<!-- Creates a custom permission so only this app can receive its messages. NOTE: the permission *must* be called PACKAGE.permission.C2D_MESSAGE, where PACKAGE is the application's package name.--> | |
<permission android:name="com.sessionm.entouragedemo.permission.C2D_MESSAGE" | |
android:protectionLevel="signature" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ensure app Background Modes are enabled for Remote notifications and Background fetch in the Info.plist: | |
<key>UIBackgroundModes</key> | |
<array> | |
<string>fetch</string> | |
<string>remote-notification</string> | |
</array> | |
// When you want to request permission for remote notifications call: | |
[[SessionM sharedInstance] registerForRemoteNotifications]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<MessageData> messagesList = SessionM.getInstance().getMessagesList(); | |
@Override | |
public View getView(int position, View convertView, ViewGroup parent) { | |
FeedViewHolder feedViewHolder; | |
if (imageLoader == null) | |
imageLoader = MessageUtil.getInstance(activity).getImageLoader(); |
NewerOlder