I am using my api for FCM . I deployed it correctly but when i am sending http request through retrofit in andorid 9 .There is problem

0

Code: public void sendnotification(User user){

    String title=txt1.getText().toString().trim();
    String body=txt2.getText().toString().trim();

    Retrofit retrofit=new Retrofit.Builder()
            .baseUrl("https://webapp-2bca9.web.app/api/")
            .addConverterFactory(GsonConverterFactory.create())
            .build();

    Api api =retrofit.create(Api.class);
    Call<ResponseBody> call = api.sendNotification(user.token,title,body);
    call.enqueue(new Callback<ResponseBody>() {
        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
        try {
            Toast.makeText(SendNotification.this, response.body().string(), Toast.LENGTH_LONG);
        }catch(IOException e){
            e.printStackTrace();
            }
        }
        @Override
        public void onFailure(Call<ResponseBody> call, Throwable t) {

        }
    });
    progressBar.setVisibility(View.INVISIBLE);

}

This is shown while debuging

Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, reflection)

Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (light greylist, reflection) D/NetworkManagementSocketTagger: tagSocket(75) with statsTag=0xffffffff, statsUid=-1

W/h.mynotficatio: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setAlpnProtocols([B)V (light greylist, reflection)

W/h.mynotficatio: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B (light greylist, reflection)

android
firebase
firebase-cloud-messaging
retrofit
asked on Stack Overflow Apr 17, 2020 by Namit Bhandari • edited Apr 17, 2020 by Frank van Puffelen

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0