Welcome to the RareWire Community Board. Use the field below to add your own contribution or find answers in existing topics. 
+1

Are there any type of conditionals to detect device screen size?

sovtek 11 years ago updated 11 years ago 2
Any type of conditionals to detect device screen size?
+1
Answered

Getting a magazine app on the App Store

610dean 11 years ago updated 11 years ago 10
I am working on a magazine style app using the Newsstand.zip sample as a starting point. It is a single issue, with images, text interviews and some videos.

However before I go to far I wonder how the newsstand app may fare as far as acceptance on the App Store. I have read that many developers had their app rejected because Apple felt it was more appropriate on the book store. They were told the app needed more interactivity.

Not wanting to go the ePub route, I am wondering if the newsstand app sample has enough interactivity to make it through or what types of things could be added to it to satisfy Apple's standards.
+1

Adding dynamic header content to httpheader?

sstava 11 years ago updated 11 years ago 7
I have moved along fairly well with my Parse.com integration, but I have a need to pass the session token of the logged in parse.com user in the httpheader of my datasource request.

The httpheader parameter is X-Parse-Session-Token. The issue I have is that the value for the session token needs to be dynamically added to the httpheader after the user has logged in.

I have tried adding: X-Parse-Session-Token="[var:signin-SessionToken]" to the httpheader tag. My hope was that when I assigned the content to the postContent property that the httpheader would do variable replacements...I don't think it does :(

I am hoping that I am missing something obvious; any thoughts?
+1
Under review

Problem with Publish - Confirm Build and Build Logs

MCVDev 11 years ago updated by icahill (Administrator) 11 years ago 2
When trying to publish the App (Live Build), no response from the 'Confirm Build' button.

When trying to review the Build Logs encountered the following error:
Server error
The website encountered an error while retrieving https://studio.rarewire.com/app/2281/.... It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
+1

POST requests with WIRE

thillsman 11 years ago updated 11 years ago 2
I've got a broad, simple question about sending POST requests with WIRE. (I'm pretty new to REST APIs: I know how to send HTML forms to PHP, I've played with John's excellent Parse example, and I really get GETs. However, POST requests are a little tricky.)

Here's what I've got:

I made a super simple php script that lives at http://tylr.us/testing/posttest.php. Here's the code:
<?php
<br/>
header('Content-Type: application/json');
<br/>
$data = array("key" => $_POST["value"]);
<br/>
echo json_encode($data);
<br/>
?>
This script does three things: gives itself a content-type of JSON, creates an array and adds a value that is POSTed as "value" to it, and encodes the array as JSON. I've been testing it with the Postman plug-in for Chrome and everything looks beautiful:



Now I'm trying to do two things from WIRE: pass the value through POST, and display the output. Super simple (I hope). Here's what I'm trying to do in WIRE:

<wire><datasources><datasource name="posttest" source="" query="//" httpmethod="post" providertype="json" /></datasources><actions><action name="posttest" oninit="yes"><assign property="datasource:posttest.postcontent" value="value=testing123" /><assign property="datasource:posttest.source" value="http://tylr.us/testing/posttest.php" /></action><action datasource="posttest" datasourceevent="querycomplete"><alert message="[datasource:posttest.1.value]" /></action></actions></wire>


When I try this, it doesn't work. Now, there are a couple of failure points: I could have my WIRE straight-up wrong. I'm assuming that WIRE can display the output of PHP pretending to be JSON, but that assumption may be wrong. But the extremely likely situation is that I don't completely understand datasources and/or POST.

If I had to guess, I would think I might need a header, but I have no idea where to start (beyond the aforementioned Parse example from John, but I don't know where Parse-specific things stop and POST/HTTP standards begin). Any tips? :)
+1
Fixed

Google Nexus 7 not compatible with Fusebox app?

sovtek 11 years ago updated 11 years ago 6
I bought a Google Nexus 7 in order to test my app within android. Problem is, it says its not compatible. My android version is 4.1.1. And on the fusebox page within google play (https://play.google.com/store/apps/de...), it says requires android 4.0.3 and up.
+1

Setting up loops within wire

sovtek 11 years ago updated 11 years ago 7
Within my scrubber (the triple bar icon within my app toolbar), I have a list of pages that appears. Each of these pages has a storyId connected to them. When a page is clicked, I am attempting to highlight every page that has the same story id.

Since I can only have one instance of an alias, I figure the only way that I can do this is by getting the first page of the story, and creating a loop to go through the range of the story and highlight each page. My problem is that random pages get skipped sometimes. Could this have something to do with the way I have my sync's setup? Do you know of a better way to do this?

Within "showStoryInfo" action, I have "setupHighlightVars". This sets up all the variables I need to get the correct highlighting of pages. From the datasource, I retrieve the page the page range. I then play the action "highlightStory".

Within the "highlightStory" action, I check to see if the variable "storyPage" is less than the "storyStartPage" variable + the "pageRange". If so, then I make the highlight bar, "STORYFOCUS-[var:storyPage]", visible and assign a +1 to the "storyPage" variable so that it will loop through all pages of the story and highlight all results.

I also do something very similar within removeHighlight. I simple loop through every page within the magazine and make the STORYFOCUS-whatever an alpha of 0. It seems to randomly miss some elements within this loop as well.

Should I be approaching this loop differently within the constraints of wire?
+1
Answered

Getting ftp projects to show up in library

610dean 11 years ago updated by icahill (Administrator) 11 years ago 1
Hello, I love this tool but am new to the system. I downloaded a sample app (newstand.zip). I then extracetd it and upoaded the folder via ftp. I can't seem to get it to show up in my library and thus can't see it in action on my device. Is there a particular folder I should put it in or something I am not doing correctly in the studio?

Similarly in the editor mode of an app on the left hand side there are some interesting "examples" in the left hand sidebar and I can't figure out how to put those into action.

Any advice would be greatly appreciated.
+1
Answered

Getting Started with Flurry

sovtek 11 years ago updated by mlong 11 years ago 4
Hey Ian, I am beginning the implementation of Flurry and have a few questions.

1. Should the files libFlurry.a and Flurry.h be placed in the root of my directory or within /Flurry?

2. Other than adding the files to my directory, and then wrapping my code within the below, is there anything else I need to do on my rarewire end?


#import "Flurry.h"
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{
[Flurry startSession:@"46F3NQB92RRZZ4HZ979S"];
}


3. On the flurry site, the implementation instructions state that I have to do the following. How does this translate to rarewire? Is SystemConfiguration.framework already added?

- In the finder, drag Flurry/ into project's file folder. (NOTE: If you are upgrading the Flurry iOS SDK, be sure to remove any existing Flurry library folders from your project's file folder before proceeding.)
- Now add it to your project: File > Add Files to "YOUR PROJECT"
- Add SystemConfiguration.framework to your app. This is required for Reachability to manage network operations efficiently.
- In your Application Delegate: Import Flurry and inside "applicationDidFinishLaunching:" add: [Flurry startSession:@"YOUR_API_KEY"];
+1
Answered

Magazine Hub & Pricing

tommody 11 years ago updated by icahill (Administrator) 11 years ago 1
Ian

I'm publishing my second issue of my magazine. If I want to create a hub to house both issues. Will that only work with in-app purchases on your monthly plan or is it usable with the single upload plan
+1
Under review

Textfield attribute multiline="yes" removes border="round" styling

sovtek 11 years ago updated by icahill (Administrator) 11 years ago 5
Has anyone reported an issue with Textfield attribute multiline="yes" removing border="round" styling? When I remove multiline="yes", the border styling look as it should, but when I place it back within the textfield, I just get a plain textfield box.
+1

Copy to clipboard function?

sovtek 11 years ago updated 11 years ago 4
Is it possible to click a button, and have the contents of a variable stored within the user's clipboard? I have a url that is stored within a variable. I want the ability for a user to click a "Copy Story URL" button, and have the url within the variable copied to their clipboard.

I saw the clipboard attribute for text, but this isn't text that will be written out within the screen.
+1
Answered

How do you force a calculator to always have two digits after the decimal?

Gruckman 11 years ago updated by icahill (Administrator) 11 years ago 5
+1
Answered

Scrolling without pager?

sovtek 11 years ago updated by icahill (Administrator) 11 years ago 12
Is it possible to create a panel larger than the ipad's dimensions, and have that panel scroll down, without using a pager?