Skip to content

Commit

Permalink
Update with NajvaSdk v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiHoseiniTabar committed Sep 26, 2019
1 parent 46a1495 commit ecc0d21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.najva.sdk:najva-android-sdk:1.2.0'
implementation 'com.najva.sdk:najva-android-sdk:1.2.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import com.najva.sdk.Najva;

public class ClickEventReceiver extends BroadcastReceiver {
public static final String TAG = "NajvaReceiver";
@Override
public void onReceive(Context context, Intent intent) {
Log.i("NajvaReceiver", "onReceive: " + intent.getIntExtra(Najva.BUTTON_ID,-1) +
Log.i(TAG, "onReceive: " + intent.getIntExtra(Najva.BUTTON_ID,-1) +
", " +
intent.getStringExtra(Najva.MESSAGE_ID));
// You can interactive with google analytics here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import com.najva.sdk.Najva;

public class NotificationEventReceiver extends BroadcastReceiver {
public static final String TAG = "NajvaReceiver";
@Override
public void onReceive(Context context, Intent intent) {
Log.i("NajvaReceiver", "onReceive: " + intent.getStringExtra(Najva.MESSAGE_ID));
Log.i(TAG, "onReceive: " + intent.getStringExtra(Najva.MESSAGE_ID));
// You can interactive with google analytics here
}
}

0 comments on commit ecc0d21

Please sign in to comment.