Skip to content

Commit

Permalink
Dynamic permission to allow multiple application to use jitsi-meet on…
Browse files Browse the repository at this point in the history
… the same mobile
  • Loading branch information
Sébastien Krafft committed Sep 20, 2018
1 parent 0d2c474 commit 7366233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void initialize() {
filter.addAction("CONFERENCE_WILL_JOIN");
filter.addAction("CONFERENCE_WILL_LEAVE");
filter.addAction("LOAD_CONFIG_ERROR");
context.getCurrentActivity().registerReceiver(receiver, filter, "com.reactnativejitsimeet.permission.JITSI_BROADCAST", null);
context.getCurrentActivity().registerReceiver(receiver, filter, context.getPackageName() + ".permission.JITSI_BROADCAST", null);
}

@ReactMethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

public class JitsiMeetNavigatorActivity extends AppCompatActivity implements JitsiMeetViewListener{
private JitsiMeetView view;
private String JITSI_BROADCAST = "com.reactnativejitsimeet.permission.JITSI_BROADCAST";

@Override
public void onBackPressed() {
Expand Down Expand Up @@ -79,7 +78,7 @@ private void on(String name, Map<String, Object> data) {
+ data);
Intent intent = new Intent(name);
intent.putExtra("data", (HashMap<String, Object>) data);
sendBroadcast(intent, JITSI_BROADCAST);
sendBroadcast(intent, getApplication().getPackageName() + ".permission.JITSI_BROADCAST");
}

public void onConferenceFailed(Map<String, Object> data) {
Expand Down

0 comments on commit 7366233

Please sign in to comment.