Closed Bug 1011175 Opened 6 years ago Closed 5 years ago

[B2G][Mobile] The 'Download App' in SoundCloud reloads instead of installing the app

Categories

(Web Compatibility :: Mobile, defect)

ARM
Gonk (Firefox OS)
defect
Not set

Tracking

(b2g-v1.3 affected, b2g-v1.4 affected)

RESOLVED FIXED
Tracking Status
b2g-v1.3 --- affected
b2g-v1.4 --- affected

People

(Reporter: psiphantong, Unassigned)

References

()

Details

(Whiteboard: [openc-1.4-exploratory] [country-all] [js] [contactready])

Description:
When the user tap the 'Download App' in SoundCloud, the site reloads instead of installing the app


Repro Steps:
1. Go to http://m.soundcloud.com/
2. Tap on the 'Download App'


Actual:
the 'Download App' in SoundCloud reloads instead of installing the app


Expected:
the 'Download App' in SoundCloud should go to the install app page


Tested the issue on the following devices, the issue occurs on all of them 

1.4 Environmental Variables:
Device: Open_c 1.4 MOZ
BuildID: 20140515000202
Gaia: 2e97bee6bb79d3577dba1bf2a1bbfcba64ee99ab
Gecko: 0cb91945f404
Version: 30.0
Firmware Version: p821a10v1.0.0b06_log_dl


1.4 Environmental Variables:
Device: buri 1.4 MOZ
BuildID: 20140515000202
Gaia: 2e97bee6bb79d3577dba1bf2a1bbfcba64ee99ab
Gecko: 0cb91945f404
Version: 30.0
Firmware Version: v1.2-device.cfg

1.3 Environmental Variables:
Device: buri 1.3 MOZ
BuildID: 20140514024003
Gaia: 96e3fa769a436a2182e6d54088fb41386eb2b5b5
Gecko: 685cf1d0dedb
Version: 28.0
Firmware Version: v1.2-device.cfg

1.3 Environmental Variables:
Device: Open_c 1.3 MOZ Base Only
Firmware Version: p821a10v1.0.0b06_log_dl

1.3 Environmental Variables:
Device: Open_c 1.3 MOZ Base Only
Firmware Version: P821A10-ENG_20140410

1.4 Environmental Variables:
Device: Open_C 1.4
BuildID: 20140515000202
Gecko: 0cb91945f404
Version: 30.0
Firmware Version: P821A10-ENG_20140410
 
Repro frequency: 100%
See attached: Video, https://www.youtube.com/watch?v=B9TEwo6PBMY
Putting [notcontactready] for confirmation by mike about the issue.

When we click the button download app. We call:
http://m-a-tb.sndcdn.com/all_b82ea7d.js

        a.delegate(SC.OpenInApp.className, 'click.tracking', function () {
            var g = $(this);
            d.trackEvent('open_in_app', g.find('.text') .text(), Backbone.history.getFragment())
        })


The OpenInApp

SC.OpenInApp = {
    className: '.open-in-app',
    iTunesUrl: 'itms://itunes.apple.com/us/app/soundcloud/id336353151?mt=8&uo=6',
    marketUrl: 'market://details?id=com.soundcloud.android',
    $el: null,
    clicked: null,
    initialize: function () {
        this.$el = $(this.className);
        this.decorate()
    },
    decorate: function () {
        if (SC.isAndroid) this.$el.attr('href', this.marketUrl);
         else SC.isIOS && this.$el.attr('href', this.iTunesUrl);
        SC.authorization.isLoggedIn || $(document.body) .addClass('showAppButton')
    }
};

proposes only two apps: Android and iOS. So basically the button on Firefox OS is… useless.
This issue must happen on all devices which are not Android and iOS.

Maybe a solution would be for SoundCloud 

   * to not show the button in the first place if not iOS or Android
OR * to link to https://marketplace.firefox.com/app/soundcloud
Flags: needinfo?(miket)
Whiteboard: [openc-1.4-exploratory] → [openc-1.4-exploratory] [country-all] [js] [notcontactready]
Karl, agreed on both suggested solutions. :)
Whiteboard: [openc-1.4-exploratory] [country-all] [js] [notcontactready] → [openc-1.4-exploratory] [country-all] [js] [contactready]
Karl, this has been fixed and can be closed
Thanks Yves. <3
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.