Skip to content

Atom-shell doesn't recongnize SUFeedURL #33

Closed

Description

@probablycorey

Sparkle has two ways to handle the Feed URL, you can set SUFeedURL in the info plist or you can call [[SUUpdater sharedUpdater] setFeedURL:[NSURL URLWithString:string]];

If I use the atom-shell api to set the URL like this autoUpdater.setFeedUrl 'https://localhost:8000/using-set-feed.xml' the updating works great!

But fails if I set the SUFeedURL in the info.plist like this

<key>SUFeedURL</key>
<string>http://localhost:8000/SUFeedURL.xml</string>

The strange thing is, if I have SUFeedURL set and I remove the call to autoUpdater.setFeedUrl it has somehow cached the previous feed url (https://localhost:8000/using-set-feed.xml in this case)

Activity

  1. zcbenz commented on Jun 21, 2013

    @zcbenz
    Contributor

    The autoUpdater.setFeedUrl is just a thin wrap around [SUUpdater sharedUpdater] setFeedURL:, so this is indeed an issue of Sparkle.

    The feed url set by setFeedURL will be remembered in NSUserDefaults, and when reading the feed url, Sparkle would first check NSUserDefaults, and if it finds one, it would use the found one instead of the one specified in Info.plist:
    https://github.com/aroben/Sparkle/blob/master/SUUpdater.m#L427

    So once you used setFeedURL, SUFeedURL in Info.plist will never work.

    Setting the right feed url with setFeedUrl again could fix this, or maybe we should patch Sparkle so it doesn't check NSUserDefaults?

  2. zcbenz commented on Jul 2, 2013

    @zcbenz
    Contributor

    @probablycorey is this still a problem for you?

  3. probablycorey commented on Jul 2, 2013

    @probablycorey
    Author

    With your help I was able to find a work around.

    On Monday, July 1, 2013, Cheng Zhao wrote:

    @probablycorey https://github.com/probablycorey is this still a problem
    for you?

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/33#issuecomment-20322037
    .

  4. added 2 commits that reference this issue on May 9, 2017
  5. added a commit that references this issue on May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions