4

내가 푸시 알림을 보내기 위해 내 응용 프로그램에 FCM을 추가하려고를 실행할 수 없습니다. 하지만 문제가있었습니다.푸시 알림 - 중포 기지 제어 메시징 (FCM)은 - (찾을 수 없음 기본 활동) 응용 프로그램

은 내가 프로젝트에 build.gradle를 추가 Google tutorial

에 따라 모든 것을 :

buildscript { 
    repositories { 
     google() 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:3.1.0-alpha05' 
     classpath 'com.google.gms:google-services:3.1.1' 
    } 
} 

응용 프로그램 build.gradle

dependencies { 
    ... 
    compile 'com.google.firebase:firebase-core:11.8.0' 
    compile 'com.google.firebase:firebase-messaging:11.8.0' 
} 
apply plugin: 'com.google.gms.google-services' 

에 있지만 추가 한 후 추가

,
compile 'com.google.firebase:firebase-core:11.8.0' 
    compile 'com.google.firebase:firebase-messaging:11.8.0' 

프로젝트를 동기화, 내가 빌드 오류받은 - Gradle을에서 중포 기지 종속성을 제거하는 경우

screenshot

를 찾을 수 없습니다

기본 활동을, 모든 것이 괜찮습니다 앱이 제대로 실행되고 있습니다. 물론, 모든 것을 업데이트했습니다. (SDK, gradle 버전 등)

저는 변조 된 (app, instantapp, base, feature 등) 프로젝트를 개발 중입니다. 그 일이 왜

는 사람은 알고 있나요?

+0

가이 링크를 따라 할 수 있고 언급에 https로 현명한 단계 않는다있는 '응용 프로그램'모듈의 매니페스트에이 필요합니다 //codelabs.developers.g를 oogle.com/codelabs/android-instant-apps/#0 –

+0

당신은 https://stackoverflow.com/questions/47909531/you-should-have-at-least-one-active-apk-that-is- 확인하실 수 있습니다 mapped-to-site-sample-com-via? answertab = active # tab-top –

답변

1

중포 기지 클라우드 메시징, 아직 reference document

기본 활동은 자신의 경우를 찾을 수 없습니다 supported-하지 않은 '응용 프로그램'설정 실행 옵션이 활동을 기본값으로 설정되어 있기 때문에 - 그것은이 URL 로 설정해야합니다 그렇지 않으면, 기본 작업 옵션을

 <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter>