Android Question Stuck Notification

Discussion in 'Android Questions' started by zavaree, Jun 30, 2019.

  1. zavaree

    zavaree Member Licensed User

    Hi AnyBody know About Why When Id use Service

    Notifiction With The App Icon Stuck On My Notification Bar On My Phone And I Cant Remove Its Stuck

    Device Android 8+

    And I Use This

    Service.StopAutomaticForeground

    in Service_Start

    But It Doesent Help
     
  2. DonManfred

    DonManfred Expert Licensed User

    Try to recreate the problem in a small project.
    Upload the project.
     
  3. zavaree

    zavaree Member Licensed User

    Hello DonManfred Thanks For Your Help

    This Is The Summery Of My Project

    I Think The Service Is Problem

    Should I Add Something In My Manifest?
     

    Attached Files:

  4. DonManfred

    DonManfred Expert Licensed User

    There are several problems here
    1. You are using an old, DEPRECATED, httputils. Replace it with okhttputils2
    2. You are restarting the Service every 10 Seconds. Android will not allow this. Set the interval to 30 minutes or more.
    3. A URL like "index.php" can not be found. There is missing the complete URL here.
     

    Attached Files:

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice