Httpclient not works in release mode but works in debug mode in xamarin forms

S GAIKWAD 231 Reputation points
2022-02-02T01:25:42.283+00:00

Httpclient not works in release mode but works in debug mode in xamarin forms
Application proper work in debug mode but after creating release build not working httpclient.

Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
277 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2022-02-02T05:15:12.163+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    Try to add INTERNET permission in AndroidManifest , Debug mode will do this automatically but release will not .

    Simply add the code <uses-permission android:name="android.permission.INTERNET" />

    Or

    Enable INTERNET selection in project configurations.

    Best Regards,

    Cole Xia


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful