[Android] things disapear after showing a interstitial ad
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- android, firebase, typescript
- Domain
- mobile
Research direction
Start from the interstitial ad event handler and the CLOSED navigation path shown in the issue, then reproduce the problem by closing the ad on Android. Compare the view state before and after navigation; done means the buttons and other elements remain visible after the ad closes.
Written by the indexing model from the issue text.
Description
After closing an interstitial ad some of the buttons and elements in the app disapear.
Loading the ad and events work correctly:
this.ad.onAdEvent((event, error, data) => {
switch (event) {
case AdEventType.LOADED:
console.log('ad loaded');
this.ad.show();
break;
case AdEventType.CLOSED:
this.routerExtensions.navigate(['postcard-viewer', Constants.Modules.PostCardEditor.result]);
break;
case AdEventType.OPENED:
break;
case AdEventType.IMPRESSION:
break;
case AdEventType.FAILED_TO_SHOW_FULL_SCREEN_CONTENT:
console.error('InterstitialAd failed to load:', error);
this.routerExtensions.navigate(['postcard-viewer', Constants.Modules.PostCardEditor.result]);
break;
}
});
this.ad.load();
Showing the ad also works correctly.
Once the ad is closed, some buttons and elements are not shown anymore for example:
<Button *ngIf="stateService.freeCard && !loadingQuota && quotaAvailable" [isEnabled]="!showspinner"
class="pcc-dark-button send-button" [text]="'viewer.backside.free-send' | translate" actionKey="SEND"
(tap)="onSendClick()">
</Button>
- Dominant language
- TypeScript
- Stars
- 62
- Forks
- 53
- Avg merge
- 8d 4h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NativeScript/firebase
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
NativeScript/firebase#292 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
NativeScript/firebase#289 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
NativeScript/firebase#288 · 4 reactions ·
-
bug ios
NativeScript/firebase#287 · 1 assignee ·
-
Uh-Oh Shazam Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
NativeScript/firebase#286 ·
All issues in NativeScript/firebase
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100